CommandLineParserArgumentParsed Event

Event raised when an argument is parsed from the command line.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
public event EventHandler<ArgumentParsedEventArgs> ArgumentParsed

Value

EventHandlerArgumentParsedEventArgs

Remarks

If the event handler sets the Cancel property to , command line processing will stop immediately, and the Parse(String, Int32) method will return . The HelpRequested property will be set to automatically.

If the argument used Method and the argument's method canceled parsing, the Cancel property will already be true when the event is raised. In this case, the HelpRequested property will not automatically be set to .

This event is invoked after the Value and UsedArgumentName properties have been set.

See Also