aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-which
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-which')
-rwxr-xr-xcontrib/kiss-which2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-which b/contrib/kiss-which
index a82990d..1364e04 100755
--- a/contrib/kiss-which
+++ b/contrib/kiss-which
@@ -1,7 +1,7 @@
#!/bin/sh -e
# Locate the first instance of a KISS package
-[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 1 ;}
+case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0; esac
{ kiss s "$1" || exit 1 ;} |
sed 1q