commandlineparser / commandlineparser/commandline

Custom error message for missing sequence values

Abierto
#363 1 comentario 7 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C#
Estrellas
4.8k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello, thanks for this great library.

I have a question regarding sequence values. I've set a property for sequence of values like this:
```csharp
[Value(0, Min = 1, HelpText = "Path(s) to file(s)", Hidden = true)]
public IEnumerable FilePaths { get; }
```
So at least one value is required. When I parse an empty list of arguments the generated help message contains this:
```
ERROR(S):
A sequence value not bound to option name is defined with few items than required.
```
That message is not very informative to the user (it also contains a grammatical error if I'm not mistaken: `few` should be `fewer`?). How can I customize it? Thanks in advance.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.