Skip to content

support -- for negative number and other input with dash#23

Open
JesseEisen wants to merge 3 commits into
clibs:masterfrom
JesseEisen:master
Open

support -- for negative number and other input with dash#23
JesseEisen wants to merge 3 commits into
clibs:masterfrom
JesseEisen:master

Conversation

@JesseEisen

Copy link
Copy Markdown

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