From b0da06cadad861ae678fbc473e5760292791cc5a Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Wed, 1 Jul 2020 20:02:09 +0000 Subject: [PATCH 1/1] feat(bkgpslog):Add more verbose error message in processArguments() --- exec/bkgpslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2