diff options
Diffstat (limited to 'contrib/kiss-message')
-rwxr-xr-x | contrib/kiss-message | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/kiss-message b/contrib/kiss-message index f29c8a5..8b82c86 100755 --- a/contrib/kiss-message +++ b/contrib/kiss-message @@ -1,10 +1,7 @@ #!/bin/sh # Show messages from a package in the system database -[ "$1" ] || { - printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg] [pkg]" - exit 0 -} +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg] [pkg]"; exit 0; esac for pkg do # Apply basename stripping so a user could run |