commandlineparser / commandlineparser/commandline

Parsing command line arguments without using reflection?

未關閉
#945 1 則留言 0 個 reaction 已指派 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?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by reviewing the CommandLineParser API described in the issue and the linked System.CommandLine parsing documentation. Compare the requested verb and option configuration with the existing class-based approach, then define the expected API and acceptance criteria for supporting parsing without reflection or verb classes.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。