commandlineparser / commandlineparser/commandline

Parsing command line arguments without using reflection?

Ouverte
#945 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
awaiting response
Langage dominant
C#
Étoiles
4.8k
Forks
478
Métriques de merge des PR
Aucune PR mergée en 30 j

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.