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
Syntaxpublic event EventHandler<ArgumentParsedEventArgs> ArgumentParsed
Public Event ArgumentParsed As EventHandler(Of ArgumentParsedEventArgs)
Dim instance As CommandLineParser
Dim handler As EventHandler(Of ArgumentParsedEventArgs)
AddHandler instance.ArgumentParsed, handler
public:
event EventHandler<ArgumentParsedEventArgs^>^ ArgumentParsed {
void add (EventHandler<ArgumentParsedEventArgs^>^ value);
void remove (EventHandler<ArgumentParsedEventArgs^>^ value);
}
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