You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what to think of this (and don't have a current use case in mind), just reporting this incidental finding in case this is helpful to the cmdliner project. Thanks!
The text was updated successfully, but these errors were encountered:
Negative integers written with a leading minus sign look like flags in the command line. Example:
-1
.I've looked at core.command, climate, and cmdliner and all agree to reject usage of negative integers as positional arguments:
https://github.com/mbarbin/cmdlang/blob/09586616c9256e8335bc56b7593fa00cd425616c/test/expect/test__negative_int_args.ml#L40
However, when the argument is named such as usage like
./main.exe -n -1
, these libraries diverge. Some accept this syntax, while cmdliner rejects it:https://github.com/mbarbin/cmdlang/blob/09586616c9256e8335bc56b7593fa00cd425616c/test/expect/test__negative_int_args.ml#L116
I don't know what to think of this (and don't have a current use case in mind), just reporting this incidental finding in case this is helpful to the cmdliner project. Thanks!
The text was updated successfully, but these errors were encountered: