commandlineparser / commandlineparser/commandline

Incorrect verb mapped to default verb

Aperta
#667 3 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

When verb is not specified it is mapped to default verb, when default verb specified. Awesome!

But I recently found that even a incorrect verb is provided it is mapped to default verb as well.

So how could throw an exception to user notifying that incorrect verb is given, while there is a default verb as well. I want to allow empty verb as well.

Empty verb => Default Verb
Incorrect verb => call **with no parsed**

[Here is a sample code snippet](https://dotnetfiddle.net/5iIN8E).

Thank you for the great library!

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.