CommandLineParser.ArgumentParsed 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

EventHandler<ArgumentParsedEventArgs>

Remarks

If the event handler sets the Cancel property to true, command line processing will stop immediately, and the Parse(String[], Int32) method will return null. The HelpRequested property will be set to true 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 true.

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

See Also