Click or drag to resize

CommandLineParserArgumentParsed Event

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

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public event EventHandler<ArgumentParsedEventArgs> ArgumentParsed

Value

Type: SystemEventHandlerArgumentParsedEventArgs
Remarks

If the event handler sets the Cancel property to , command line processing will stop immediately, and the Parse(String, Int32) method will return . You can use this for instance to implement a "-help" argument that will display usage and quit regardless of the other command line arguments.

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

See Also