mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Use lowercase default display name for parameters
This commit is contained in:
@@ -257,10 +257,10 @@ namespace CliFx.Tests
|
||||
"Description",
|
||||
"Command using positional parameters",
|
||||
"Usage",
|
||||
TestAppName, "param cmd", "<first>", "<PARAMETERB>", "<third list>", "[options]",
|
||||
TestAppName, "param cmd", "<first>", "<parameterb>", "<third list>", "[options]",
|
||||
"Parameters",
|
||||
"* first",
|
||||
"* PARAMETERB",
|
||||
"* parameterb",
|
||||
"* third list", "A list of numbers",
|
||||
"Options",
|
||||
"-o|--option",
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CliFx.Domain
|
||||
|
||||
public string DisplayName => !string.IsNullOrWhiteSpace(Name)
|
||||
? Name
|
||||
: Property.Name.ToUpperInvariant();
|
||||
: Property.Name.ToLowerInvariant();
|
||||
|
||||
public CommandParameterSchema(PropertyInfo property, int order, string? name, string? description)
|
||||
: base(property, description)
|
||||
|
||||
Reference in New Issue
Block a user