aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2023-04-17 13:05:23 +0000
committermerakor <cem@ckyln.com>2023-04-17 13:05:23 +0000
commite6c7d463ede3582b078173f2c6233572ab661ce0 (patch)
treeebdf7444202d3051b03f5a378feb1c76f88b520a /man
parent437c69d907eb58761efc9b715e244964c2ffd09f (diff)
downloadcpt-e6c7d463ede3582b078173f2c6233572ab661ce0.tar.gz
cpt-list.1: update manual page according to the new operation changes
FossilOrigin-Name: fde1f756d54505f1a1e1a7775ae59da81c2e5a6e5cf9546e7a028d00a1c94c3b
Diffstat (limited to 'man')
-rw-r--r--man/cpt-list.125
1 files changed, 21 insertions, 4 deletions
diff --git a/man/cpt-list.1 b/man/cpt-list.1
index 778a57d..978995c 100644
--- a/man/cpt-list.1
+++ b/man/cpt-list.1
@@ -1,4 +1,4 @@
-.Dd Feb 25, 2021
+.Dd Apr 17, 2023
.Dt cpt-list 1
.Sh NAME
.Nm cpt-list
@@ -9,7 +9,13 @@
.Ar pkg...
.Nm
.Fl C
-.Ar pkg true-statement false-statement
+.Ar pkg
+.Op Ar true-statement
+.Op Ar false-statement
+.Nm
+.Fl V
+.Ar pkg version
+.Op Ar release
.Sh DESCRIPTION
.Nm
can be used to list all packages or check if the given package is
@@ -20,9 +26,9 @@ list the given packages. If any of the given packages are not installed on the
system,
.Nm
will exit with an error. However,
-.Fl C
+.Fl C , -check
and
-.Fl -check
+.Fl V , -version-check
flags can be used in order to change the behaviour of the utility:
.Bl -tag -width 12n
.It Fl c , -current
@@ -39,6 +45,17 @@ if it is installed and the string for
.Em false_statement
if it isn't. This function is mostly useful for being called inside packages for
optional dependencies.
+.It Fl V , -version-check Ar package version release
+Checks if given
+.Em package
+exists in the given
+.Em version
+and
+.Em release
+numbers.
+.Nm
+exits 0 on success, and 1 if the given package does not match the version or
+release number given to the utility.
.El
.Sh AUTHOR
.An Cem Keylan Aq Mt cem@ckyln.com