aboutsummaryrefslogtreecommitdiff
path: root/src/cpt
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-21 11:29:26 +0000
committermerakor <cem@ckyln.com>2020-12-21 11:29:26 +0000
commitf1cd3c042aaf8aaa29ab166976012d2ed9cc907d (patch)
tree8d1f5a4ccfec51eabf3271def88b3283d3f21a67 /src/cpt
parent440af4f3ebfecd68dabf8ce5524fd3f953e81c71 (diff)
downloadcpt-f1cd3c042aaf8aaa29ab166976012d2ed9cc907d.tar.gz
cpt-lib: add ability to be used as a script
- cpt script no longer ignores anything. - If cpt-lib is invoked from the command-line, it parses the given command-line arguments, making it possible to be used as a script. FossilOrigin-Name: 8484d0ff082d03f38fa41d7a5e76c21bfdd5951b6db5193bb4a7f17e74a5025e
Diffstat (limited to 'src/cpt')
-rwxr-xr-xsrc/cpt3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cpt b/src/cpt
index 57e16b4..c72d39d 100755
--- a/src/cpt
+++ b/src/cpt
@@ -16,9 +16,6 @@ case "$arg" in
done
for path; do
- # Ignore the library.
- [ lib = "$path" ] && continue
-
printf "%b->%b %-${max}s " "$colorb" "$colre" "${path#*/cpt-}"
sed -n 's/^# *//;2p' "$(command -v "cpt-$path")"
done | sort -uk1 >&2