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:
parent
22d7a6ede0
commit
5558e5f728
4 changed files with 5 additions and 3 deletions
|
@ -116,7 +116,7 @@ namespace Microsoft.DotNet.Cli
|
|||
{
|
||||
for (; lastArg < args.Length; lastArg++)
|
||||
{
|
||||
if (IsArg(args[lastArg], "v", "verbose"))
|
||||
if (IsArg(args[lastArg], "d", "diagnostics"))
|
||||
{
|
||||
verbose = true;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Microsoft.DotNet.Tools.Help
|
|||
-h|--help {LocalizableStrings.HelpDefinition}
|
||||
|
||||
{LocalizableStrings.HostOptions}:
|
||||
-v|--verbose {LocalizableStrings.VerboseDefinition}
|
||||
-d|--diagnostics {LocalizableStrings.DiagnosticsDefinition}
|
||||
--version {LocalizableStrings.VersionDescription}
|
||||
--info {LocalizableStrings.InfoDescription}
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
public const string VerboseDefinition = "Enable verbose output";
|
||||
|
||||
public const string DiagnosticsDefinition = "Enable diagnostics output";
|
||||
|
||||
public const string HelpDefinition = "Show help";
|
||||
|
||||
public const string HostOptions = "Host options (passed before the command)";
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
|||
new DotnetCommand()
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.ExecuteWithCapturedOutput(
|
||||
$"-v dependency-tool-invoker -c {configuration} -f netcoreapp1.0 portable")
|
||||
$"-d dependency-tool-invoker -c {configuration} -f netcoreapp1.0 portable")
|
||||
.Should().Pass()
|
||||
.And.HaveStdOutContaining("Hello Portable World!");;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue