Parser Class |
Namespace: X3Platform.CommandLine
The Parser type exposes the following members.
Name | Description | |
---|---|---|
![]() | Parser |
Initializes a new instance of the Parser class.
|
![]() | Parser(ActionParserSettings) |
Initializes a new instance of the Parser class,
configurable with ParserSettings using a delegate.
|
![]() | Parser(ParserSettings) | Obsolete.
Initializes a new instance of the Parser class,
configurable with a ParserSettings object.
|
Name | Description | |
---|---|---|
![]() | Dispose |
Frees resources owned by the instance.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ParseArguments(String, Object) |
Parses a String array of command line arguments, setting values in options
parameter instance's public fields decorated with appropriate attributes.
|
![]() | ParseArguments(String, Object, ActionString, Object) |
Parses a String array of command line arguments with verb commands, setting values in options
parameter instance's public fields decorated with appropriate attributes.
This overload supports verb commands.
|
![]() | ParseArgumentsStrict(String, Object, Action) |
Parses a String array of command line arguments, setting values in options
parameter instance's public fields decorated with appropriate attributes. If parsing fails, the method invokes
the onFail delegate, if null exits with DefaultExitCodeFail.
|
![]() | ParseArgumentsStrict(String, Object, ActionString, Object, Action) |
Parses a String array of command line arguments with verb commands, setting values in options
parameter instance's public fields decorated with appropriate attributes. If parsing fails, the method invokes
the onFail delegate, if null exits with DefaultExitCodeFail.
This overload supports verb commands.
|
![]() | ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | DefaultExitCodeFail |
Default exit code (1) used by ParseArgumentsStrict(String, Object, Action)
and ParseArgumentsStrict(String, Object, ActionString, Object, Action) overloads.
|
Name | Description | |
---|---|---|
![]() ![]() | Default |
Gets the singleton instance created with basic defaults.
|
![]() | Settings |
Gets the instance that implements ParserSettings in use.
|