Can not enter negative numbers
vasek125 opened this issue · comments
vasek125 commented
If number begins with -, it is treated as an option. Current workaround: use something like: -o " -1" because -o "-1" will not work.
Yo-An Lin commented
Looks like the logic needs to be fixed in the below flow:
- see if
-1
option exists - if not, check the previous option
-o
requires a value? - if
-o
requires a value, pass-1
value to-o
option.
makes sense?
Gasol Wu commented
reasonable
Gasol Wu commented
Looks good to me.
Yo-An Lin commented
OK I will release this changes in the next minor version.
Gasol Wu commented
@c9s I think next minor version should also change autoload from psr-0 to psr-4, Because psr-0 is deprecated.
Yo-An Lin commented
sure :)
Gasol Wu commented
👍
Yo-An Lin commented
Updated and Released!
Yo-An Lin commented
I am closing. :)