CommandLineParserDuplicateArgument Event

Event raised when an argument that is not multi-value is specified more than once.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public event EventHandler<DuplicateArgumentEventArgs> DuplicateArgument

Value

EventHandlerDuplicateArgumentEventArgs

Remarks

Handling this event allows you to inspect the new value, and decide to keep the old or new value. It also allows you to, for instance, print a warning for duplicate arguments.

This event is only raised when the AllowDuplicateArguments property is .

See Also