commandlineparser / commandlineparser/commandline

Seperator does not appear in help text when diplaying default values

Đang mở
#490 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C#
Star
4.8k
Fork
478
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.