CommandLineParserAllowDuplicateArguments Property

Gets a value indicating whether duplicate arguments are allowed.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public bool AllowDuplicateArguments { get; }

Property Value

Boolean
if it is allowed to supply non-multi-value arguments more than once; otherwise, . The default value is .

Remarks

If the AllowDuplicateArguments property is , a CommandLineArgumentException is thrown by the Parse(String) 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 multi-value or dictionary arguments, which can always be supplied multiple times.

Use the ParseOptions or ParseOptionsAttribute class to change this value.

See Also