commandlineparser / commandlineparser/commandline

Option parser: when value is the same as full parameter name

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

Beschreibung

Part of command line model:

```
[Option('o', "output", Separator = ' ')]
public IEnumerable OutputPathsList { get; set; }

[Option('d', "output-dir")]
public string OutputDir { get; set; }
```

And part of command line:
`--output-dir output -o :loop :magic_value`

if 'ouput' value is the same as full parameter name "output" I'll get empty OutputPathsList.

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.