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
It would be nice to be able to mark some additional into into the Required() field, such that a parameter is only required if some other criteria are met. An example would be only requiring a password to be input if a user name has also been used as an argument. Something like:
parser.Setup(p_arg => p_arg.UserName)
.As('u', "user")
.WithDescription("The user name to use for login.");
parser.Setup(p_arg => p_arg.UserPassword)
.As('p', "password")
.WithDescription("The user password to use for login.")
.Required(p_otherArgs => !string.IsNullOrWhitespace(p_otherArgs.UserName));
The text was updated successfully, but these errors were encountered:
It would be nice to be able to mark some additional into into the Required() field, such that a parameter is only required if some other criteria are met. An example would be only requiring a password to be input if a user name has also been used as an argument. Something like:
The text was updated successfully, but these errors were encountered: