aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-depends
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cpt-depends')
-rwxr-xr-xcontrib/cpt-depends12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/cpt-depends b/contrib/cpt-depends
index 1076442..85b8506 100755
--- a/contrib/cpt-depends
+++ b/contrib/cpt-depends
@@ -1,6 +1,18 @@
#!/bin/sh -ef
# Display a package's dependencies
+## SYNOPSIS:
+## .Nm
+## .Op Ar pkg
+
+## DESCRIPTION:
+## .Nm
+## displays the dependencies of the given
+## .Em installed package .
+## If no package name is given,
+## .Nm
+## will use the name of the current directory as the package.
+
case "$1" in
--help|-h)
printf 'usage: %s [pkg]\n' "${0##*/}"