From c27b89dfd4beb4eca230956b5f2625f6fa5e107f Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 24 May 2017 22:03:43 -0700 Subject: [PATCH] Changing verbose to verbosity in the help options to match what we actually use. --- src/dotnet/commands/dotnet-help/HelpUsageText.cs | 5 +++-- src/dotnet/commands/dotnet-help/LocalizableStrings.cs | 4 +--- .../GivenThatIWantToShowHelpForDotnetCommand.cs | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/dotnet/commands/dotnet-help/HelpUsageText.cs b/src/dotnet/commands/dotnet-help/HelpUsageText.cs index f6ae73667..55ceac9c1 100644 --- a/src/dotnet/commands/dotnet-help/HelpUsageText.cs +++ b/src/dotnet/commands/dotnet-help/HelpUsageText.cs @@ -1,4 +1,5 @@ -using Microsoft.DotNet.Tools.Help; +using Microsoft.DotNet.Tools; +using Microsoft.DotNet.Tools.Help; internal static class HelpUsageText { @@ -31,7 +32,7 @@ path-to-application: -d|--diagnostics {LocalizableStrings.SDKDiagnosticsCommandDefinition} {LocalizableStrings.CommonOptions}: - -v|--verbose {LocalizableStrings.VerboseDefinition} + -v|--verbosity {CommonLocalizableStrings.VerbosityOptionDescription} -h|--help {LocalizableStrings.HelpDefinition} {LocalizableStrings.RunDotnetCommandHelpForMore} diff --git a/src/dotnet/commands/dotnet-help/LocalizableStrings.cs b/src/dotnet/commands/dotnet-help/LocalizableStrings.cs index 91dbf82dd..375676f1c 100644 --- a/src/dotnet/commands/dotnet-help/LocalizableStrings.cs +++ b/src/dotnet/commands/dotnet-help/LocalizableStrings.cs @@ -19,11 +19,9 @@ namespace Microsoft.DotNet.Tools.Help public const string CommonOptions = "Common options"; - public const string VerboseDefinition = "Enable verbose output"; - public const string DiagnosticsDefinition = "Enable diagnostic output"; - public const string HelpDefinition = "Show help"; + public const string HelpDefinition = "Show help."; public const string HostOptions = "Host options (passed before the command)"; diff --git a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs index f67f8556f..8c33747ff 100644 --- a/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs +++ b/test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs @@ -43,8 +43,8 @@ SDK commands: -d|--diagnostics Enable diagnostic output. Common options: - -v|--verbose Enable verbose output - -h|--help Show help + -v|--verbosity Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. + -h|--help Show help. Run 'dotnet COMMAND --help' for more information on a command.