clop

Command-Line OPtions

What clop reads

SourceHow
Run program --helpwhen you name a PROGRAM
Read help text from a fileclop -f FILE
Read help text from standard inputclop - (e.g. prog --help \| clop -)
Detect the version via program --versionautomatically, when you name a PROGRAM

It works whenever help prints one option per line, as GNU coreutils, BusyBox, and Toybox do.

What it does not handle (yet)

These aren't read directly. Capture the text and pass it with -f or -:

Security

clop PROGRAM runs program --help and program --version, so only pass names you trust. To run nothing, capture the help first:

untrusted --help > help.txt
clop -f help.txt

Input is never passed to a shell or eval, and help text is treated as plain text (no glob expansion).