System.CommandLine.Parsing Namespace

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

Classes

Name Description
ArgumentResult

A result produced when parsing an Argument.

CommandLineParser

Parses command line input.

CommandResult

A result produced when parsing a Command.

DirectiveResult

A result produced when parsing an Directive.

OptionResult

A result produced when parsing an Option.

ParseError

Describes an error that occurs while parsing command line input.

SymbolResult

A result produced during parsing for a specific symbol.

Token

A unit of significant text on the command line.

Enums

Name Description
TokenType

Identifies the type of a Token.

Delegates

Name Description
TryReplaceToken

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