commandlineparser / commandlineparser/commandline

Seperator does not appear in help text when diplaying default values

Offen
#490 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
C#
Sterne
4.8k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.