commandlineparser / commandlineparser/commandline
Option are displayed in lowercase in help
- Lenguaje dominante
- C#
- Estrellas
- 4.8k
- Forks
- 478
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**Describe the bug**
When no long or short name is provided for an option, the help display this option in lowercase
**To Reproduce**
Run this console program adding in the command line "--help "
```
class Options
{
[Option(HelpText = "Specify the input file.")]
public string InputFile { get; set; }
}
class Program
{
static void Main(string[] args)
{
var result = Parser.Default.ParseArguments(args);
result.WithParsed(options =>
{
Console.WriteLine($"InputFile: {options.InputFile}");
})
.WithNotParsed(errors =>
{
});
}
}
```
**Expected behavior**
"InputFile" instead of "inputfile"
**Screenshots**

**Additional context**
I saw that it's in Specification.cs class method FromProperty that there is a call to ToLowerInvariant() that make the display lower
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza en Specification.cs, específicamente en el método FromProperty y su llamada a ToLowerInvariant(). Reproduce el problema con la clase Options proporcionada y el comando --help; después, verifica que la ayuda generada muestre el nombre de la propiedad como InputFile en lugar de inputfile.
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
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 48/100