Add 'option.helpFlags' and 'option.versionFlags' to spec implicitely
felixSchl opened this issue · 1 comments
felixSchl commented
Just before passing the spec to the arg parser, prepend an optional group of
[ helpFlag0 | helpFlagN | versionFlag0 | versionFlagN ]
So, for option.helpFlags = [ '-h', '--help' ]
and option.versionFlags = [ '-v', '--version' ]
, this ought to look like:
[-h|--help|-v|--version]
A more lenient form could maybe expand to:
[[-h] [--help] [-v] [--version]]
This allows these special, ubiquitous flags to be omitted from the spec.