3 ms·
GNU cat is on the naughty list, supporting --help but not -h. less is the same (and is not part of GNU). edit Looks like the GNU echo, sort, and uniq programs
by MaxBarraclough 5y ago
GNU cat is on the naughty list, supporting --help but not -h. less is the same (and is not part of GNU).
edit Looks like the GNU echo, sort, and uniq programs are the same. GNU has an official policy endorsing --help but not -h. [0]
Also related: --version should print the version numbers (and perhaps build details) of the software, and immediately terminate.
-v lacks the (at least somewhat) universal meaning of -h, though. Some commands, such as curl, use -v as shorthand for --verbose rather than --version, but all commands should support --version.
I believe Java HotSpot used to use -version, supporting neither -v nor --version. Now it supports both --version and -version, but not -v.
[0] https://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html https://www.gnu.org/prep/standards/html_node/_002d_002dhelp....