aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-revdepends
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-13 19:51:21 +0000
committermerakor <cem@ckyln.com>2020-05-13 19:51:21 +0000
commitc68dffa6c42334cfa939fb21a5430a35abff08c0 (patch)
tree851e5fc23981c030ecaebe53cd100a2f1edd4964 /contrib/kiss-revdepends
parent77cf1dab6537557b5ae43e1aee76972f87c829c0 (diff)
downloadcpt-c68dffa6c42334cfa939fb21a5430a35abff08c0.tar.gz
contrib: use --help and -h for usage information
FossilOrigin-Name: 43f55b077d3feb3e4bc42d72a58cadedbe7f387cedf01d2e59308c35f6afb484
Diffstat (limited to 'contrib/kiss-revdepends')
-rwxr-xr-xcontrib/kiss-revdepends2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-revdepends b/contrib/kiss-revdepends
index b2e18b3..05fa46d 100755
--- a/contrib/kiss-revdepends
+++ b/contrib/kiss-revdepends
@@ -1,7 +1,7 @@
#!/bin/sh -e
# Display packages which depend on package
-[ "$1" ] || { printf '%s\n' "usage: kiss-revdepends <pkg>" ; exit 1 ;}
+case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-revdepends <pkg>" ; exit 0 ; esac
kiss s "$1" >/dev/null
# 'cd' to the database directory as a simple way of