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
CheckMandatoryArguments is set to false and a mandatory parameter is not passed will still throw an Exception. Looking at the code the CheckMandatoryArguments doesn't seem to be evaluated.
/// <summary>/// Checks whether or non-optional arguments were defined on the command line. /// </summary>/// <exception cref="MandatoryArgumentNotSetException"><see cref="Argument.Optional">Non-optional</see> argument not defined.</exception>/// <seealso cref="CheckMandatoryArguments"/>, <seealso cref="Argument.Optional"/>privatevoidPerformMandatoryArgumentsCheck(){_arguments.ForEach(delegate(Argumentarg){if(!arg.Optional&&!arg.Parsed)thrownewMandatoryArgumentNotSetException(string.Format(Messages.EXC_MISSING_MANDATORY_ARGUMENT,arg.Name),arg.Name);});}
The text was updated successfully, but these errors were encountered:
CheckMandatoryArguments is set to false and a mandatory parameter is not passed will still throw an Exception. Looking at the code the CheckMandatoryArguments doesn't seem to be evaluated.
The text was updated successfully, but these errors were encountered: