commandlineparser / commandlineparser/commandline

Seperator does not appear in help text when diplaying default values

オープン
#490 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
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.
```

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

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

評価

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

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

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