diff options
author | merakor <cem@ckyln.com> | 2021-04-03 13:27:14 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-04-03 13:27:14 +0000 |
commit | cf6dc9365bde782681e192b5b2fa280bd6034787 (patch) | |
tree | 3a15a7aff52212ad3d44cd73317822fc8a1eda66 | |
parent | c1faf64caeaffbf9b75ea7d49d9f5ac34edb013f (diff) | |
download | cpt-cf6dc9365bde782681e192b5b2fa280bd6034787.tar.gz |
cpt-list: update usage docstring
FossilOrigin-Name: 541a3f8b59bda394154164db7901e8957d578a543ab020b29b71f14de5d13886
-rw-r--r-- | man/cpt-list.1 | 8 | ||||
-rwxr-xr-x | src/cpt-list | 2 |
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" |