-
Notifications
You must be signed in to change notification settings - Fork 86
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
Impossible to pass a negative number as the value for an option #89
Comments
I think supporting # valid
$ gateways list -f=-5m -t=now
$ gateways list --from=-5m --to=now
# not valid
$ gateways list -f -5m -t now
$ gateways list --from -5m --to now |
@rpendleton There are some changes in the repo with f22f0a0 and e1ba47e to support using equals with options and flags if you'd like to give that a go. |
Thanks. I finally got around to testing the changes in those two commits, and while I can confirm Using the same code from my initial issue description:
|
If you configure an option to accept a number, it seems it's impossible to pass a negative number for the value of the option since it's interpreted as a flag instead.
I'm not 100% sure what the right way to resolve this would be without making a mess of things, but I figure it's something that should at least have a workaround.
Attempts to use that flag:
The text was updated successfully, but these errors were encountered: