commandlineparser / commandlineparser/commandline

Parsing command line arguments without using reflection?

オープン
#945 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
awaiting response
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。