Click or drag to resize

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
Syntax
public bool AllowDuplicateArguments { get; set; }

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