diff options
Diffstat (limited to '.local')
-rw-r--r-- | .local/templates/sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/templates/sh b/.local/templates/sh index ff7bc6d..27cae4a 100644 --- a/.local/templates/sh +++ b/.local/templates/sh @@ -5,7 +5,7 @@ main() # Handle opts opts "$@" shift "$OPTS" - unset "$OPTS" + unset OPTS # Show help [ "$OPT_HELP_ONLY" ] && usage && exit 0 @@ -20,7 +20,7 @@ opts() while getopts ":h" opt do case "$opt" in - h) OPT_HELP_ONLY=1 + h) OPT_HELP_ONLY=1 ;; *) printf "Invalid option passed: %s\n" "$OPTARG" >&2 ;; |