Skip to content

Add Symbol.Parse, make Parser static #2054

Closed

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

Activity

  1. self-assigned this
    on Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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