ArgumentParsedEventArgs Class |
Namespace: Ookii.CommandLine
The ArgumentParsedEventArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | ArgumentParsedEventArgs |
Initializes a new instance of the ArgumentParsedEventArgs class.
|
Name | Description | |
---|---|---|
![]() | Argument |
Gets the argument that was parsed.
|
![]() | Cancel | Gets or sets a value indicating whether the event should be canceled. (Inherited from CancelEventArgs.) |
![]() | OverrideCancelParsing |
Gets or sets a value that indicates whether or not the CancelParsing
property should be ignored.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
If the event handler sets the Cancel property to , command line processing will stop immediately, and the Parse(String, Int32) method will return , even if all the required positional parameters have already been parsed. You can use this for instance to implement a "/?" argument that will display usage and quit regardless of the other command line arguments.