commandlineparser / commandlineparser/commandline
ushort and short not supported
- Lenguaje dominante
- C#
- Estrellas
- 4.8k
- Forks
- 478
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
```
class Options
{
[Option('p', "port", Required = false, HelpText = "port number")]
public int Port { get;set; }
}
```
If i change the type of Port to ushort or short I get an error when starting the program:
"ERROR(S):
Error setting value to option 'p, port': Check if Option or Value attribute values are set
properly for the given type."
Expected behavior:
1. clear error message that the type is not supported
2. support the types ushort and short
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce el error informado con el ejemplo de C# Options, cambiando Port entre int, ushort y short. Rastrea la conversión del valor de la opción y la ruta de notificación de errores; se considera completado cuando ushort y short funcionan o reciben un mensaje claro de tipo no compatible, con pruebas que cubran ambos casos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100