yazap icon indicating copy to clipboard operation
yazap copied to clipboard

Negative numeric values

Open bandithedoge opened this issue 4 months ago • 2 comments

It's currently impossible to use negative numeric values in the command line because something like "-1" gets parsed as a short option.

bandithedoge avatar Jul 12 '25 21:07 bandithedoge

Will look into it.

prajwalch avatar Jul 13 '25 00:07 prajwalch

~~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

bandithedoge avatar Jul 13 '25 00:07 bandithedoge