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

Support arguments to options with leading - #192

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Support arguments to options with leading - #192

merged 1 commit into from
Apr 15, 2016

Conversation

aclemons
Copy link
Contributor

@aclemons aclemons commented Apr 4, 2016

This allows negative values as arguments to numeric options and strings
starting with - for any other type.

Fixes #170
Fixes #179

This allows negative values as arguments to numeric options and strings
starting with - for any other type.

Fixes #170
Fixes #179
@leejarvis
Copy link
Owner

Thanks, this looks great! I'll take a closer look and hope to merge later this week.

@leejarvis leejarvis merged commit 34af9a1 into leejarvis:master Apr 15, 2016
@aclemons aclemons deleted the leading_dash branch April 18, 2016 21:11
@m1neral
Copy link

m1neral commented Aug 15, 2016

@leejarvis When you release these changes? It is very necessary. Thanks!

@leejarvis
Copy link
Owner

Sorry about the wait, I've just released v4.4.0

kenhys added a commit to kenhys/mruby-slop that referenced this pull request Apr 24, 2019
See leejarvis/slop#192

Basically, latest slop 4.6.2 should be supported, but
it takes times to fix for mruby. so as a first step,
only leading "-" support is backported.
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.

negative number being parsed as an option Option also being considered as an argument
3 participants