commandlineparser / commandlineparser/commandline

Parsing command line arguments without using reflection?

Open
#945 1 comment 0 reactions 0 assignees View on GitHub
awaiting response
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

Is there a way to parse command line options without using reflection? As it stands, I have to make a class for each "verb". I would like to be able to specify all of the data that `CommandLineParser` needs without being required to have a class to represent the verbs.

[The documentation](https://learn.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial#parse-the-arguments-and-invoke-the-parseresult) for `System.CommandLine` gives a good example of something that would be good for us. Ideally, I wouldn't need to switch to `System.CommandLine`, since I already use `CommandLineParser`.

Is there any way to do this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.