commandlineparser / commandlineparser/commandline
Seperator does not appear in help text when diplaying default values
- 主要語言
- C#
- 星號
- 4.8k
- 分支
- 478
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I have the following property in the options:
```
[Option("branch", Required = false, Separator = ',', HelpText = "Branches to include.",
Default = new[] { "master", "breakfix" })]
public IEnumerable IncludeBranches { get; set; }
```
The separator is set to ',' then a list of string is given for the default.
The help output is:
```
--branch (Default: master breakfix) Branches to include.
```
This would be miss-leading to the user since it does not include the comma. Would it instead make sense to do something like this?
```
--branch (Default: master,breakfix) Branches to include.
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Reproduce the help output from the issue's Option configuration, focusing on how the default IEnumerable values are rendered when Separator is set to a comma. Trace the help-generation entry point that formats default values and verify that the completed output represents the configured separator without changing unrelated help text.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100