From f0362019ed34e6b3ca75cd0744682d4320532cdb Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Tue, 28 Jan 2020 22:24:38 +0200 Subject: [PATCH] Use lowercase default display name for parameters --- CliFx.Tests/CliApplicationTests.cs | 4 ++-- CliFx/Domain/CommandParameterSchema.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CliFx.Tests/CliApplicationTests.cs b/CliFx.Tests/CliApplicationTests.cs index e4abbdd..2553908 100644 --- a/CliFx.Tests/CliApplicationTests.cs +++ b/CliFx.Tests/CliApplicationTests.cs @@ -257,10 +257,10 @@ namespace CliFx.Tests "Description", "Command using positional parameters", "Usage", - TestAppName, "param cmd", "", "", "", "[options]", + TestAppName, "param cmd", "", "", "", "[options]", "Parameters", "* first", - "* PARAMETERB", + "* parameterb", "* third list", "A list of numbers", "Options", "-o|--option", diff --git a/CliFx/Domain/CommandParameterSchema.cs b/CliFx/Domain/CommandParameterSchema.cs index 82a83db..b1e8da9 100644 --- a/CliFx/Domain/CommandParameterSchema.cs +++ b/CliFx/Domain/CommandParameterSchema.cs @@ -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)