News for hackers. Stuff that matters.
Re:-h –Help -help Help –? –? by dorianmariefr on Monday April 11, 2022 @07:35PM (#30996615)
same for `cmd -v` `cmd --version`
Re:-h –Help -help Help –? –? by Aachen on Monday April 11, 2022 @08:01PM (#30996838)
The first one is verbose, not version, though? Not sure if you're used to a set of utilities that doesn't intersect the ones I'm used to where -v is version. I've seen -V, though.

And then there's grep

Re:-h –Help -help Help –? –? by saghm on Tuesday April 12, 2022 @01:42AM (#30999023)
I agree that -V is more common. I have used a few things that use -v for version though (I think `ruby` does, which led to some confusion for me the first time I tried to pass that to `python` and instead of getting the version number found myself in a more chatty than normal python shell).
Re:-h –Help -help Help –? –? by anjbe on Tuesday April 12, 2022 @01:51AM (#30999066)
The cat command is rather infamous for using -v to mean “visual” (as in, convert invisible characters to something visible).

But the infamy is not that it used -v for something other than “version”—I doubt that convention existed in 1983, when the complaint was made—but rather that it was a sign of the ever‐growing complexity of specific Unix tools at the expense of the harmony of the whole system.

See “Program design in the UNIX environment,” by Rob Pike and Brian Kernighan, USENIX 1983: http://harmful.cat-v.org/cat-v/

Re:-h –Help -help Help –? –? by LeoPanthera on Monday April 11, 2022 @10:26PM (#30997885)
Defacto short switch for version is "-V". "-v" is verbose.
Re:-h –Help -help Help –? –? by sharken on Tuesday April 12, 2022 @06:14AM (#31000666)
As is quite clear in this thread, there really is no unified way of doing things.

Uppercase switches also strikes me as not very intuitive, either you need to look at the help page or you have to have the same mindset as the developer.

And still, the distinction between lowercase and uppercase switches are not easy to remember.

For the power user though it makes sense.