Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced option parsing #9

Open
seeruk opened this issue Oct 17, 2017 · 1 comment
Open

Enhanced option parsing #9

seeruk opened this issue Oct 17, 2017 · 1 comment

Comments

@seeruk
Copy link
Member

seeruk commented Oct 17, 2017

It'd be great to have better short option parsing, so that they could be grouped up -abc (is this option folding?)

It'd also be great to not have to put an = in after an option for ones that could/should have values (i.e. look ahead in the argument list, and consume arguments as option values).

To accomplish this, it might mean that input parsing and mapping have to be done in the same place. The context that is in mapping would be useful for parsing. Alternatively, if there's a way of doing some quick checks to help parsing make better decisions before mapping that might work too.

@seeruk seeruk self-assigned this Oct 17, 2017
@seeruk seeruk changed the title Enhanced short option parsing Enhanced option parsing Oct 18, 2017
@seeruk
Copy link
Member Author

seeruk commented Feb 15, 2018

Needs tidying up, but both option folding and specifying option values without = work in branch feature/opts-without-equals.

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

No branches or pull requests

1 participant