public ErrorMode DuplicateArguments { get; set; }
Public Property DuplicateArguments As ErrorMode
Get
Set
Dim instance As ParseOptionsAttribute
Dim value As ErrorMode
value = instance.DuplicateArguments
instance.DuplicateArguments = value
public:
property ErrorMode DuplicateArguments {
ErrorMode get ();
void set (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 Ookii.CommandLine.CommandsCommandManager class will print a warning to the ParseOptionsError stream when a duplicate argument is found. If you are not using these methods, ErrorModeWarning is identical to ErrorModeAllow and no warning is displayed. To manually display a warning, use the CommandLineParserDuplicateArgument event.
This value can be overridden by the ParseOptionsDuplicateArguments property.