From cf6dc9365bde782681e192b5b2fa280bd6034787 Mon Sep 17 00:00:00 2001 From: merakor Date: Sat, 3 Apr 2021 13:27:14 +0000 Subject: cpt-list: update usage docstring FossilOrigin-Name: 541a3f8b59bda394154164db7901e8957d578a543ab020b29b71f14de5d13886 --- man/cpt-list.1 | 8 +++++--- 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" -- cgit v1.2.3