public ErrorMode? DuplicateArguments { get; set; }
Public Property DuplicateArguments As ErrorMode?
Get
Set
Dim instance As ParseOptions
Dim value As ErrorMode?
value = instance.DuplicateArguments
instance.DuplicateArguments = value
public:
property Nullable<ErrorMode> DuplicateArguments {
Nullable<ErrorMode> get ();
void set (Nullable<ErrorMode> value);
}
If set to ErrorModeError, supplying a non-multi-value argument more than once will cause an exception. If set to ErrorModeAllow, the last value supplied will be used.
If set to ErrorModeWarning, the CommandLineParserTParseWithErrorHandling method, the static CommandLineParserParseT(ParseOptions) method, the generated IParserTSelfParse(ParseOptions) method and the CommandManager class will print a warning to the stream indicated by the Error property when a duplicate argument is found. If you are not using these methods, ErrorModeWarning is identical to ErrorModeAllow, and no warning is displayed.
If not , this property overrides the value of the ParseOptionsAttributeDuplicateArguments property.