aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/cpt-list.18
-rwxr-xr-xsrc/cpt-list2
2 files changed, 6 insertions, 4 deletions
diff --git a/man/cpt-list.1 b/man/cpt-list.1
index 16a2959..292ba13 100644
--- a/man/cpt-list.1
+++ b/man/cpt-list.1
@@ -6,8 +6,10 @@
.Sh SYNOPSIS
.Nm
.Op Fl c
-.Op Fl -check Ar args...
-.Op Ar pkg...
+.Ar pkg...
+.Nm
+.Fl C
+.Ar pkg true-statement false-statement
.Sh DESCRIPTION
.Nm
can be used to list all packages or check if the given package is
@@ -26,7 +28,7 @@ flags can be used in order to change the behaviour of the utility:
.It Fl c , -current
Assumes that the current directory is a package and will use it instead of
arguments.
-.It Fl -check Ar package true_statement false_statement
+.It Fl C , -check Ar package true_statement false_statement
Checks whether the
.Em package
is installed on the system and returns the string for
diff --git a/src/cpt-list b/src/cpt-list
index 58f244e..4eb7cf6 100755
--- a/src/cpt-list
+++ b/src/cpt-list
@@ -3,7 +3,7 @@
parser_definition() {
setup REST help:usage -- \
- "usage: ${0##*/} [-c] [pkg...]" \
+ "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"