Changing the host verbosity flag to -d|--diagnostics from -v|--verbosity so that it is not confused with the verbs verbosity flag.

This commit is contained in:
Livar Cunha 2016-12-15 15:13:00 -08:00
parent 22d7a6ede0
commit 5558e5f728
4 changed files with 5 additions and 3 deletions

View file

@ -116,7 +116,7 @@ namespace Microsoft.DotNet.Cli
{ {
for (; lastArg < args.Length; lastArg++) for (; lastArg < args.Length; lastArg++)
{ {
if (IsArg(args[lastArg], "v", "verbose")) if (IsArg(args[lastArg], "d", "diagnostics"))
{ {
verbose = true; verbose = true;
} }

View file

@ -21,7 +21,7 @@ namespace Microsoft.DotNet.Tools.Help
-h|--help {LocalizableStrings.HelpDefinition} -h|--help {LocalizableStrings.HelpDefinition}
{LocalizableStrings.HostOptions}: {LocalizableStrings.HostOptions}:
-v|--verbose {LocalizableStrings.VerboseDefinition} -d|--diagnostics {LocalizableStrings.DiagnosticsDefinition}
--version {LocalizableStrings.VersionDescription} --version {LocalizableStrings.VersionDescription}
--info {LocalizableStrings.InfoDescription} --info {LocalizableStrings.InfoDescription}

View file

@ -18,6 +18,8 @@
public const string VerboseDefinition = "Enable verbose output"; public const string VerboseDefinition = "Enable verbose output";
public const string DiagnosticsDefinition = "Enable diagnostics output";
public const string HelpDefinition = "Show help"; public const string HelpDefinition = "Show help";
public const string HostOptions = "Host options (passed before the command)"; public const string HostOptions = "Host options (passed before the command)";

View file

@ -109,7 +109,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
new DotnetCommand() new DotnetCommand()
.WithWorkingDirectory(testProjectDirectory) .WithWorkingDirectory(testProjectDirectory)
.ExecuteWithCapturedOutput( .ExecuteWithCapturedOutput(
$"-v dependency-tool-invoker -c {configuration} -f netcoreapp1.0 portable") $"-d dependency-tool-invoker -c {configuration} -f netcoreapp1.0 portable")
.Should().Pass() .Should().Pass()
.And.HaveStdOutContaining("Hello Portable World!");; .And.HaveStdOutContaining("Hello Portable World!");;
} }