clop counts the command-line options a program advertises in its --help
text.
Install
clop is a single, self-contained Bash script, with no runtime or build step. How to install it?
⬇ Download clop View on GitHub
Option 1: After downloading, make it executable and put it on your PATH:
chmod +x clop
mv clop ~/.local/bin/clop # make sure ~/.local/bin is on your PATH
Option 2: Or fetch it directly from a terminal:
curl -fsSL https://ternava.github.io/clop/clop -o clop
chmod +x clop
mv clop ~/.local/bin/clop
Option 3: From a clone of the repository you can also use the Makefile in tool/ directory:
make -C tool install # installs to /usr/local/bin (may need sudo)
make -C tool PREFIX="$HOME/.local" install # install into your home directory
make -C tool uninstall # remove it again
Then, see Usage for examples and output formats, and Support for exactly which help sources clop can and cannot read.
This is version 0.2.0, it adds per-program version detection on top of the
first basic release.