commandlineparser / commandlineparser/commandline

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

Open
#782 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.