commandlineparser / commandlineparser/commandline

usability request: improve error message when missing requirement (when no verbs/arguments match)

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

説明

We've used your library a long time, it's very helpful thanks.

I wanted to request that you consider checking for linq errors and not throwing an exception but providing an error.

The best example is this one which I am seeing a lot ( nuget version: 2.8.0 )

System.InvalidOperationException : Sequence contains no elements

This has happened both for coding errors (copying an option class and forgetting to rename verb) but also for user/usage errors, when some arguments don't match.

This is coming from Linq, it would be more helpful to diagnose them if you could check for requirements prior to parsing a verb or argument and return relevant error.

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

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

評価

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

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

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