commandlineparser / commandlineparser/commandline
usability request: improve error message when missing requirement (when no verbs/arguments match)
- Linguagem predominante
- C#
- Estrelas
- 4.8k
- Forks
- 478
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Start by tracing the LINQ path that raises “Sequence contains no elements” during verb or argument parsing. Review how missing requirements and unmatched arguments are currently handled, then define and test a relevant diagnostic error for both cases instead of the exception.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp
- Domínio
- cli
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100