Re: Command line help options
- Posted by nanochip Nov 29, 2010
- 1317 views
Anyone who works with Unix/Linux systems knows that, for example, almost none of Unix built-in commands uses brackets embracing any option when help is invoked, unlesss, of course, you are suggesting that Unix/Linux authors don't adhere to standards.
...snip...
So... which standards are you talking about?
The quote was a bit out of context, it was speaking as to removing help all together or making -h, --help non-functional. You are indeed right about extended help not using brackets and in light of that thinking I'd be in favor of removing that from our cmd_parse() method.
Jeremy
Sorry but -h, --help or brackets... all the same: hardcoding such things is not standard.
Regarding help, an example is enough: On Unix, command ls (DIR on Windows) -obviously one of the most frequently used commands-, not only does not use -h for help but for another purpose:
-h, --human-readable, with -l, print sizes in human-readable format (e.g., 1K 234M 2G)