fix(bkgpslog):processArguments: Shorten short option strings
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Mon, 29 Jun 2020 16:26:16 +0000 (16:26 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Mon, 29 Jun 2020 16:26:16 +0000 (16:26 +0000)
exec/bkgpslog

index 900b8c46355415c97a3a62f5d520ef0ef98ea4e2..8d1829a73a4619c6ac086059dcf6ac24eb7d43d8 100755 (executable)
@@ -173,10 +173,10 @@ processArguments() {
        #echoerr "DEBUG:Starting processArguments while loop."
        #echoerr "DEBUG:Provided arguments are:""$*"
        case "$1" in
        #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
            --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
            *) echoerr "ERROR: Unrecognized argument."; exit 1;; # Handle unrecognized options.
        esac
        shift