Edit

Share via


System.CommandLine.Parsing Namespace

Provides types and methods for parsing command-line input, including arguments, options, commands, and tokens.

Classes

ArgumentResult

A result produced when parsing an Argument.

CommandLineStringSplitter

Splits a string based on whitespace and quotation marks

CommandResult

A result produced when parsing a Command.

OptionResult

A result produced when parsing an Option.

ParseError

Describes an error that occurs while parsing command line input.

Parser

Parses command line input.

ParseResult

Describes the results of parsing a command line input based on a specific parser configuration.

ParseResultExtensions

Provides extension methods for parse results.

ParserExtensions

Provides extension methods for parsers.

SymbolResult

A result produced during parsing for a specific symbol.

Token

A unit of significant text on the command line.

Enums

TokenType

Identifies the type of a Token.

Delegates

ParseArgument<T>

Performs custom parsing of an argument.

TryReplaceToken

Replaces a token with one or more other tokens prior to parsing.

ValidateSymbolResult<T>

A delegate used to validate symbol results during parsing.