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 -- for negative number and other input with dash #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JesseEisen
Copy link

When use -- to supports negative number, it only support one digit like -5, and not support -500. it Will treat -500 as short flag. So i just make the argument after -- as an entirety. now it support flag like this:

$ ./test -r a -ov  -- -help --halo
required: a
optional: (null)
verbose: enabled
additional args:
  - '-help'
  - '--halo'

It will not treat -help as -h,-e, -l,-p.

@JesseEisen JesseEisen changed the title support -- for negative number and other not flag input support -- for negative number and other input with dash Nov 24, 2017
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.

1 participant