-
Notifications
You must be signed in to change notification settings - Fork 640
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
As of version 0.40.0, it doesn't appear possible to specify a negative number as a command option.
Assuming I define a command that takes a decimal value as a command option, and that I want to pass a negative number value, neither of the following works:
mycommand -a -1.50
mycommand -a "-1.50"
Both attempts fail with this error Not a valid name for a short option. It appears that the command option parsing logic thinks that the -1.50 is supposed to be a command option.
I would expect that the quotes at least would effectively escape the numeric value. Is this a bug, or am I missing something?
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working