CommandLineParserAllowDuplicateArguments Property |
Gets or sets a value indicating whether duplicate arguments are allowed.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic bool AllowDuplicateArguments { get; set; }
Public Property AllowDuplicateArguments As Boolean
Get
Set
Dim instance As CommandLineParser
Dim value As Boolean
value = instance.AllowDuplicateArguments
instance.AllowDuplicateArguments = value
public:
property bool AllowDuplicateArguments {
bool get ();
void set (bool value);
}
Property Value
Type:
Boolean if it is allowed to supply non-array arguments more than once; otherwise,
.
The default value is
.
Remarks
If the AllowDuplicateArguments property is , a CommandLineArgumentException is thrown by the Parse(String, Int32)
method if an argument's value is supplied more than once.
If the AllowDuplicateArguments property is , the last value supplied for the argument is used if it is supplied multiple times.
The AllowDuplicateArguments property has no effect on arguments whose ArgumentType is an array, which can
always be supplied multiple times.
See Also