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
If my parameter requires an argument, I would like an error to be thrown if that argument is not supplied.
I tried detecting this in the callback, but the callback never gets called if the argument is not supplied. Essentially it treats it as if the parameter was never supplied.
i.e.,
If the 't' parameter requires a numeric value and should be called like: myapp.exe -t 5, but myapp.exe -t
is the same as myapp.exe.
This can lead to some unexpected behavior.
The text was updated successfully, but these errors were encountered:
I'm new to this command line parser but quite like it so far. This feature is really missing.
Also required parameters should somehow be indicated when using SetupHelp(). The workaround works but the ToString() message only shows the exception name which could be smarter I guess.
If my parameter requires an argument, I would like an error to be thrown if that argument is not supplied.
I tried detecting this in the callback, but the callback never gets called if the argument is not supplied. Essentially it treats it as if the parameter was never supplied.
i.e.,
If the 't' parameter requires a numeric value and should be called like: myapp.exe -t 5, but
myapp.exe -t
is the same as
myapp.exe
.This can lead to some unexpected behavior.
The text was updated successfully, but these errors were encountered: