commandlineparser / commandlineparser/commandline

Parsing command line arguments without using reflection?

Aperta
#945 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
awaiting response
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.