Argon: an alternative parser for command-line arguments

Markus Laker via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Mar 4 09:34:08 PST 2016


On Friday, 4 March 2016 at 12:21:25 UTC, Jacob Carlborg wrote:
> No, I mean a longer description, more like documentation. Look 
> at the help for git when using --help, it has different 
> behavior than -h. The first one is more like a man page.

Ah, I see.  Sorry for the misunderstanding.

An app could do that trivially: have a --short-help option with 
shortcut -h and a --help option with no shortcut, and then 
respond to the two switches differently.  Mark the --short-help 
option as undocumented, and then it won't appear in an 
auto-generated syntax summary.

Markus


More information about the Digitalmars-d-announce mailing list