diff options
author | merakor <cem@ckyln.com> | 2020-05-13 19:51:21 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-13 19:51:21 +0000 |
commit | c68dffa6c42334cfa939fb21a5430a35abff08c0 (patch) | |
tree | 851e5fc23981c030ecaebe53cd100a2f1edd4964 /contrib/kiss-manifest-tree | |
parent | 77cf1dab6537557b5ae43e1aee76972f87c829c0 (diff) | |
download | cpt-c68dffa6c42334cfa939fb21a5430a35abff08c0.tar.gz |
contrib: use --help and -h for usage information
FossilOrigin-Name: 43f55b077d3feb3e4bc42d72a58cadedbe7f387cedf01d2e59308c35f6afb484
Diffstat (limited to 'contrib/kiss-manifest-tree')
-rwxr-xr-x | contrib/kiss-manifest-tree | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-manifest-tree b/contrib/kiss-manifest-tree index 1a9fffe..ac18b98 100755 --- a/contrib/kiss-manifest-tree +++ b/contrib/kiss-manifest-tree @@ -1,7 +1,7 @@ #!/bin/sh -ef # Display all files owned by a package with a tree view -[ "$1" ] || { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ;} +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac kiss l "$1" >/dev/null printf '%s\n' "[$1]:" tree -C --fromfile "$KISS_ROOT/var/db/kiss/installed/$1/manifest" | sed 1,2d |