aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-21 13:02:25 +0000
committermerakor <cem@ckyln.com>2021-03-21 13:02:25 +0000
commite54185abdcc4db907f68c94cfabb3b4310b2bab2 (patch)
tree3b3661ce9c546cf72b6db291afebcce911fa4f07 /src
parentbe1e26d4fbd6f482712c4a096812f12c8758cbfa (diff)
downloadcpt-e54185abdcc4db907f68c94cfabb3b4310b2bab2.tar.gz
cpt-list: make usage output more clear
FossilOrigin-Name: 5e436d4946dc736529a60834f37cc6055a7ad672de30c1f347e22ef0e3bb1107
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt-list6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpt-list b/src/cpt-list
index 363e22f..58f244e 100755
--- a/src/cpt-list
+++ b/src/cpt-list
@@ -2,10 +2,12 @@
# List installed packages
parser_definition() {
- setup REST help:usage -- "usage: ${0##*/} [-c] [pkg...]"
+ setup REST help:usage -- \
+ "usage: ${0##*/} [-c] [pkg...]" \
+ "or: ${0##*/} -C pkg true-statement false-statement"
msg -- '' 'Options:'
flag CURRENT -c --current -- "Use the current directory as a package"
- param PKG --check label:" --check PKG TRUE FALSE" -- \
+ param PKG -C --check label:" -C,--check PKG TRUE FALSE" -- \
"Check if PKG exists and return the string of TRUE if"\
"it exists, and the string of FALSE if it doesn't." \
"Useful for optional packaging."