Parser Class

Definition

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(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)
Parse(IReadOnlyList<String>, String)

Parses a list of arguments.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

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.

Applies to