From: Steven Baltakatei Sandoval Date: Wed, 1 Jul 2020 20:02:09 +0000 (+0000) Subject: feat(bkgpslog):Add more verbose error message in processArguments() X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/b0da06cadad861ae678fbc473e5760292791cc5a?ds=sidebyside feat(bkgpslog):Add more verbose error message in processArguments() --- diff --git a/exec/bkgpslog b/exec/bkgpslog index c49cee6..eeed3a6 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -216,7 +216,7 @@ processArguments() { -c | --compress) OPTION_COMPRESS="true"; vbm "DEBUG:Compressed output mode enabled.";; -z | --time-zone) try setTimeZoneEV "$2";; -t | --temp-dir) OPTION_TMPDIR="true" && TMP_DIR_PRIORITY="$2";; - *) echoerr "ERROR: Unrecognized argument."; exit 1;; # Handle unrecognized options. + *) echoerr "ERROR: Unrecognized argument: $1"; echoerr "STATUS:All arguments:$*"; exit 1;; # Handle unrecognized options. esac shift done