commandlineparser / commandlineparser/commandline
Option are displayed in lowercase in help
- Ngôn ngữ chính
- C#
- Star
- 4.8k
- Fork
- 478
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.