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

No short #10

Closed
wants to merge 2 commits into from
Closed

No short #10

wants to merge 2 commits into from

Conversation

majioa
Copy link

@majioa majioa commented Dec 18, 2013

Added support to disable short option when nil value is passed to :short key.

@florianpilz
Copy link
Owner

As far as I can see, your changes do not change the behaviour of micro-optparse, therefore I will not merge them in. However, I have used your ideas to clean up the code a little bit and introduced the possibility to prevent creation of short accessors.

You can now just add :no_short => true as a setting for an option to disable the creation of the short accessor. In addition I added the possibility to define parser-wide settings, so you can also create the parser using Parser.new(:no_short => true) and all arguments will be created without a short accessor.

I hope that still solves your issues. :) Thanks again for your input and ideas for improvements of micro-optparse.

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

Successfully merging this pull request may close these issues.

None yet

2 participants