Parser Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses command line input.
public ref class Parser
public class Parser
type Parser = class
Public Class Parser
- Inheritance
-
Parser
Constructors
Parser() |
Initializes a new instance of the Parser class using the default RootCommand. |
Parser(Command) |
Initializes a new instance of the Parser class using the specified command. |
Parser(CommandLineConfiguration) |
Initializes a new instance of the Parser class using the specified configuration. |
Properties
Configuration |
Gets the configuration on which the parser's grammar and behaviors are based. |
Methods
Parse(IReadOnlyList<String>, String) |
Parses a list of arguments. |
Extension Methods
Invoke(Parser, String, IConsole) |
Parses a command line string value and invokes the handler for the indicated command. |
Invoke(Parser, String[], IConsole) |
Parses a command line string array and invokes the handler for the indicated command. |
InvokeAsync(Parser, String, IConsole) |
Parses a command line string value and invokes the handler for the indicated command. |
InvokeAsync(Parser, String[], IConsole) |
Parses a command line string array and invokes the handler for the indicated command. |
Parse(Parser, String) |
Parses a command line string. |