From c1fd6b7aab3f69050e86353af4b6bd110770c404 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 6 Nov 2023 15:45:09 -0500 Subject: [PATCH] add explicit -h (help) flag --- smoketest.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/smoketest.bash b/smoketest.bash index 0336dcf5d..2f216b783 100755 --- a/smoketest.bash +++ b/smoketest.bash @@ -15,6 +15,7 @@ OPEN_TABS=${OPEN_TABS:-false} display_usage() { echo "Usage:" + echo -e "\t-h\t\t\t\tprint this Help text." echo -e "\t-O\t\t\t\tOffline mode, do not attempt to pull container images." echo -e "\t-s [minio|localstack]\t\tS3 implementation to spin up (default \"minio\")." echo -e "\t-g\t\t\t\tinclude Grafana dashboard and jfr-datasource in deployment." @@ -27,8 +28,12 @@ display_usage() { s3=minio ce=podman -while getopts "s:gtOVXcb" opt; do +while getopts "hs:gtOVXcb" opt; do case $opt in + h) + display_usage + exit 0 + ;; s) s3="${OPTARG}" ;;