aboutsummaryrefslogtreecommitdiff
path: root/man/cpt-list.1
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-02-24 23:46:45 +0000
committermerakor <cem@ckyln.com>2021-02-24 23:46:45 +0000
commit88712bd6769fd416ab089e415e87965c62747962 (patch)
tree843318283aea6835e9a3542e1952243d9d31c2e7 /man/cpt-list.1
parent334515be23c3262c5bd5a084f502fe2797a01a26 (diff)
downloadcpt-88712bd6769fd416ab089e415e87965c62747962.tar.gz
update manual pages
FossilOrigin-Name: e053d099bc1dc54208956ffdae0899d8b6c5a6f60892ea5d56c1e1ebe1dbd544
Diffstat (limited to 'man/cpt-list.1')
-rw-r--r--man/cpt-list.155
1 files changed, 43 insertions, 12 deletions
diff --git a/man/cpt-list.1 b/man/cpt-list.1
index 8460e90..16a2959 100644
--- a/man/cpt-list.1
+++ b/man/cpt-list.1
@@ -1,13 +1,44 @@
-.TH "cpt-list" "1" "2020-07-24" "CARBS LINUX" "General Commands Manual"
-.SH NAME
-cpt-list
-.SH SYNOPSIS
-\fBcpt-list\fR [pkg...]
-.SH DESCRIPTION
-cpt-list can be used to list all packages or check if the given package is
-installed on the system.
-
-.SH LICENSE
+.Dd Feb 25, 2021
+.Dt cpt-list 1
+.Sh NAME
+.Nm cpt-list
+.Nd list packages
+.Sh SYNOPSIS
+.Nm
+.Op Fl c
+.Op Fl -check Ar args...
+.Op Ar pkg...
+.Sh DESCRIPTION
+.Nm
+can be used to list all packages or check if the given package is
+installed on the system. Without any arguments supplied,
+.Nm
+will list all packages installed on the system. Otherwise, it will check and
+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
+and
+.Fl -check
+flags can be used in order to change the behaviour of the utility:
+.Bl -tag -width 12n
+.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
+Checks whether the
+.Em package
+is installed on the system and returns the string for
+.Em true_statement
+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.
+.El
+.Sh AUTHOR
+.An Cem Keylan Aq Mt cem@ckyln.com
+.Sh LICENSE
See LICENSE for copyright information.
-.SH SEE ALSO
-cpt(1)
+.Sh SEE ALSO
+.Xr cpt 1