yazap
yazap copied to clipboard
Negative numeric values
It's currently impossible to use negative numeric values in the command line because something like "-1" gets parsed as a short option.
Will look into it.
~~My app has a positional argument that takes a signed integer value. If the user calls the command as ./myapp 10 it works and the value is "10", but ./myapp -10 crashes with an "invalid option" error because the parser assumes -10 is a short option, not an option value.~~
EDIT: The issue page didn't get refreshed between you editing your comment and me posting mine