commandlineparser / commandlineparser/commandline

I get "Option 'version' is unknown" if it comes after other user-defined options on the command line

Offen
#661 6 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

Since `version` is pretty much built-in, it should never be "unknown", especially if this message is immediately followed by helptext that clearly shows that it is a valid option.

```
3676 ~/fork/foo-etl$ dotnet etl/bin/Debug/netcoreapp3.0/etl.dll -c foo -d bar --version
etl 0.0.1
Copyright (C) 2020 etl

ERROR(S):
Option 'version' is unknown.

-c, --configdir Required. Path to dir that contains client configurations

-d, --invoicedir Required. Path to dir that contains invoices are

--help Display this help screen.

--version Display version information.
```

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.