aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-repodepends
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/kiss-repodepends')
-rwxr-xr-xcontrib/kiss-repodepends2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-repodepends b/contrib/kiss-repodepends
index 5fad8d9..cbe7f43 100755
--- a/contrib/kiss-repodepends
+++ b/contrib/kiss-repodepends
@@ -1,7 +1,7 @@
#!/bin/sh -e
# Display a package's dependencies in the repository
-[ "$1" ] || { printf '%s\n' "usage: kiss-repodepends <pkg>" ; exit 1 ;}
+case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-repodepends <pkg>" ; exit 0 ; esac
kiss s "$1" >/dev/null
cat "$(kiss s "$1" | sed 1q)/depends" 2>/dev/null