Muokkaa

Jaa


Parser Constructors

Definition

Overloads

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.

Parser()

Initializes a new instance of the Parser class using the default RootCommand.

public:
 Parser();
public Parser ();
Public Sub New ()

Applies to

Parser(Command)

Initializes a new instance of the Parser class using the specified command.

public:
 Parser(System::CommandLine::Command ^ command);
public Parser (System.CommandLine.Command command);
new System.CommandLine.Parsing.Parser : System.CommandLine.Command -> System.CommandLine.Parsing.Parser
Public Sub New (command As Command)

Parameters

command
Command

The root command for the parser.

Applies to

Parser(CommandLineConfiguration)

Initializes a new instance of the Parser class using the specified configuration.

public:
 Parser(System::CommandLine::CommandLineConfiguration ^ configuration);
public Parser (System.CommandLine.CommandLineConfiguration configuration);
new System.CommandLine.Parsing.Parser : System.CommandLine.CommandLineConfiguration -> System.CommandLine.Parsing.Parser
Public Sub New (configuration As CommandLineConfiguration)

Parameters

configuration
CommandLineConfiguration

The configuration on which the parser's grammar and behaviors are based.

Exceptions

Applies to