From c1bbf9f72e42f890bac670f7dce42b792470c04e Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Mon, 29 Jun 2020 16:26:16 +0000 Subject: [PATCH 1/1] fix(bkgpslog):processArguments: Shorten short option strings --- exec/bkgpslog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2