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

Better handling of option names with multiple words #169

Merged
merged 1 commit into from
Jun 14, 2015

Conversation

timrogers
Copy link

At the moment, the behaviour is a bit odd for options with multiple word names (e.g. --long-option-name) where you end up with strange behaviour on Slop::Result where you end up with odd symbol keys, which look like :"long-option-name" rather than :long_option_name as you'd naturally expected.

I've made various fixes to make this work as you'd expect, as well as supporting features like the ? accessor methods.

Keen to hear your thoughts on this. Seems like a nicer and more idiomatic Ruby behaviour. Tested it somewhat but you may well have a view on testing it more or less.

@leejarvis
Copy link
Owner

Looks great, thanks!

leejarvis added a commit that referenced this pull request Jun 14, 2015
Better handling of option names with multiple words
@leejarvis leejarvis merged commit 2606254 into leejarvis:master Jun 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants