clop

Command-Line OPtions

clop counts the command-line options a program advertises in its --help text. Point it at a program and it tells you how many options that program has, for the one-option-per-line help layouts used by GNU coreutils, BusyBox, and Toybox.

Install

clop is a single, self-contained Bash script, with no runtime and no build step. Pick whichever way suits you.

⬇ Download clop View on GitHub

Download, then make it executable and put it on your PATH:

chmod +x clop
mv clop ~/.local/bin/clop      # ensure ~/.local/bin is on your PATH

Or fetch it straight from the terminal:

curl -fsSL https://ternava.github.io/clop/clop -o clop
chmod +x clop
mv clop ~/.local/bin/clop

Or from a clone, use the Makefile in tool/:

make -C tool install                       # to /usr/local/bin (may need sudo)
make -C tool PREFIX="$HOME/.local" install # into your home directory
make -C tool uninstall                     # remove it again

Next, see Usage for examples and output formats, and Support for which help sources clop can and cannot read.

This is version 0.2.0, which adds per-program version detection on top of the first release.