commandlineparser / commandlineparser/commandline

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

Aperta
#661 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

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.