commandlineparser / commandlineparser/commandline

Seperator does not appear in help text when diplaying default values

Aperta
#490 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.