diff --git a/Scripts/Bash/Functions/Commons/cli_parseArguments.sh b/Scripts/Bash/Functions/Commons/cli_parseArguments.sh index 354c829..fd6a6a8 100755 --- a/Scripts/Bash/Functions/Commons/cli_parseArguments.sh +++ b/Scripts/Bash/Functions/Commons/cli_parseArguments.sh @@ -31,9 +31,11 @@ function cli_parseArguments { # Parse optional arguments using getopt. ARGUMENTS=$(getopt -o "$ARGSS" -l "$ARGSL" -n "$CLI_NAME (${FUNCNAME[1]})" -- "$@") - # Be sure getout parsed arguments successfully. + # Be sure getout parsed arguments successfully. Otherwise, finish + # script execution with a to know more line. if [[ $? != 0 ]]; then cli_printMessage "${CLI_FUNCDIRNAM}" --as-toknowmore-line + exit fi }