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
Is it possible to set constraints to an int option so that it have min and max allowed values? I think that's a pretty common scenario, but the following fails:
With this exception: System.InvalidOperationException: Scalar option specifications do not support range specification.
If the library does not provide this functionality how would I implement it on my own and still play nicely with the auto help and error messages that the library automatically outputs on invalid input?
The text was updated successfully, but these errors were encountered:
loudenvier
changed the title
How to validate an int option?
How to add constraints to an int option?
Nov 2, 2023
Is it possible to set constraints to an int option so that it have min and max allowed values? I think that's a pretty common scenario, but the following fails:
With this exception:
System.InvalidOperationException: Scalar option specifications do not support range specification.
If the library does not provide this functionality how would I implement it on my own and still play nicely with the auto help and error messages that the library automatically outputs on invalid input?
The text was updated successfully, but these errors were encountered: