commandlineparser / commandlineparser/commandline
Group verbs in help text
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
If many verbs (tens or hundreds) are implemented, it's very difficult to find a verb. So it would be useful to be able to group them in the help text, perhaps by sections that can be defined as properties of the VerbAttribute.
Example:
```csharp
[Verb("my-verb1", HelpText = "MyVerb1 help", HelpSection = "Section 1")]
class MyVerb1Options
{ ... }
[Verb("my-verb2", HelpText = "MyVerb2 help", HelpSection = "Section 2")]
class MyVerb2Options
{ ... }
```
The output in the console should then group verbs based on their own section.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先定位 VerbAttribute 以及在主控台說明輸出中格式化動詞的程式碼。追蹤動詞中繼資料的收集方式,然後定義 section 屬性,並驗證具有相符 sections 的動詞會顯示在一起,同時確保對於未設定 section 的動詞,說明輸出仍然可用。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100