Skip to content

Add Symbol.Parse, make Parser static #2054

@adamsitnik

Description

@adamsitnik
  • expose ParseResult Symbol.Parse(string[] args, CommandLineConfiguration = default), so users can easily discover parsing
  • make Parser a static type with a single ParseResult Parse(string[] args, CommandLineConfiguration = default) method
  • make CommandLineBuilder.Build return CommandLineConfiguration, move all extension methods from CommandLineBuilderExtensions to CommandLineBuilder itself
  • Move the actual parsing logic from StringExtensions to Parser:

https://github.com/dotnet/command-line-api/blob/main/src/System.CommandLine/Parsing/StringExtensions.cs#L72

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions