From: Steven Baltakatei Sandoval Date: Mon, 29 Jun 2020 16:26:16 +0000 (+0000) Subject: fix(bkgpslog):processArguments: Shorten short option strings X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/c1bbf9f72e42f890bac670f7dce42b792470c04e?ds=inline fix(bkgpslog):processArguments: Shorten short option strings --- diff --git a/exec/bkgpslog b/exec/bkgpslog index 900b8c4..8d1829a 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -173,10 +173,10 @@ processArguments() { #echoerr "DEBUG:Starting processArguments while loop." #echoerr "DEBUG:Provided arguments are:""$*" case "$1" in - --h | --help) showUsage; exit 1;; # Display usage. + -h | --help) showUsage; exit 1;; # Display usage. --version) showVersion; exit 1;; # Show version - --v | --verbose) OPTION_VERBOSE="true"; vbm "DEBUG:Verbose mode enabled.";; # Enable verbose mode. - --o | --output) if [ -d "$2" ]; then DIROUT="$2"; vbm "DEBUG:DIROUT:$DIROUT"; shift; fi ;; # Define output directory. + -v | --verbose) OPTION_VERBOSE="true"; vbm "DEBUG:Verbose mode enabled.";; # Enable verbose mode. + -o | --output) if [ -d "$2" ]; then DIROUT="$2"; vbm "DEBUG:DIROUT:$DIROUT"; shift; fi ;; # Define output directory. *) echoerr "ERROR: Unrecognized argument."; exit 1;; # Handle unrecognized options. esac shift