3 ms·
Hmm. I suppose if there is no default action (given no stdin input is provided) then -v might still mean verbose and print a version. Like, running grep by itse
by lucb1e 10y ago
Hmm. I suppose if there is no default action (given no stdin input is provided) then -v might still mean verbose and print a version. Like, running grep by itself does nothing, but grep -v by itself might print a version because it's more info (more verbose) than nothing.
Commands that do something without arguments, like cat (even though it just blocks, waiting for input) might still print the version to stderr I suppose.
That would be a way to solve both cases.