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 ErrorMode.Error, supplying a non-multi-value argument more than once will cause an exception. If set to ErrorMode.Allow, the last value supplied will be used.
If set to ErrorMode.Warning, the CommandLineParser<T>.ParseWithErrorHandling() method, the static CommandLineParser.Parse<T>(ParseOptions) method, the generated IParser<TSelf>.Parse(ParseOptions) method, and the Ookii.CommandLine.Commands.CommandManager class will print a warning to the ParseOptions.Error stream when a duplicate argument is found. If you are not using these methods, ErrorMode.Warning is identical to ErrorMode.Allow and no warning is displayed. To manually display a warning, use the CommandLineParser.DuplicateArgument event.
This value can be overridden by the ParseOptions.DuplicateArguments property.