commandlineparser / commandlineparser/commandline

Incorrect verb mapped to default verb

オープン
#667 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。