diff --git a/deploy_local_beta/run.sh b/deploy_local_beta/run.sh index 78ced701a..dc0a58fc2 100644 --- a/deploy_local_beta/run.sh +++ b/deploy_local_beta/run.sh @@ -21,6 +21,7 @@ ############ ANYBETA_correct_args=1 +ANYBETA_help_requested=0 while (( "$#" )); do ANYBETA_PARAM=`echo $1 | awk -F= '{ print $1 }'` @@ -34,7 +35,8 @@ while (( "$#" )); do -h|--help) ANYBETA_usage - shift + ANYBETA_help_requested=1 + shift "$#" ;; *) @@ -45,7 +47,10 @@ while (( "$#" )); do esac done -if test $ANYBETA_correct_args = 1 +if test $ANYBETA_help_requested = 0 then - . $ANYBETA_DEPLOY/deploy_local_beta.sh "$@" + if test $ANYBETA_correct_args = 1 + then + . $ANYBETA_DEPLOY/deploy_local_beta.sh "$@" + fi fi diff --git a/deploy_local_beta/settings.sh b/deploy_local_beta/settings.sh index f15f695f2..9952c3b2d 100644 --- a/deploy_local_beta/settings.sh +++ b/deploy_local_beta/settings.sh @@ -70,6 +70,7 @@ function ANYBETA_cleanup() { unset ANYBETA_ERROR_PREFIX unset ANYBETA_SAVE_VENV unset ANYBETA_correct_args + unset ANYBETA_help_requested unset ANYBETA_report unset ANYBETA_error