diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-12 11:58:07 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-12 11:58:07 +0200 |
commit | 6dacc04e8133d4d552eea8bb6a4c2070067d044d (patch) | |
tree | a41e0f045c004b238bab3dac1c41da9e0d20fa80 | |
parent | 00be253c557270a5d13e6efcab4b5532888da93f (diff) | |
download | alpine-conf-6dacc04e8133d4d552eea8bb6a4c2070067d044d.zip |
setup-keymap: print usage on invalid option to stderr
-rw-r--r-- | setup-keymap.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-keymap.in b/setup-keymap.in index 54982e8..256d2cb 100644 --- a/setup-keymap.in +++ b/setup-keymap.in @@ -103,6 +103,7 @@ goodbye() { while getopts "h" opt; do case $opt in h) usage 0;; + '?') usage "1" >&2;; esac done shift $(( $OPTIND - 1 )) |