Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Add 'option.helpFlags' and 'option.versionFlags' to spec implicitely #72

Closed
felixSchl opened this issue Aug 22, 2016 · 1 comment
Closed

Comments

@felixSchl
Copy link
Owner

felixSchl commented Aug 22, 2016

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.

@felixSchl
Copy link
Owner Author

This will be easily possible once the work outlined in #42 has been completed. It is currently blocked since we serialize post solving, which is a lossy transform.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant