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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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 even is only raised when the AllowDuplicateArguments property is .

See Also