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++)
|
for (; lastArg < args.Length; lastArg++)
|
||||||
{
|
{
|
||||||
if (IsArg(args[lastArg], "v", "verbose"))
|
if (IsArg(args[lastArg], "d", "diagnostics"))
|
||||||
{
|
{
|
||||||
verbose = true;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
||||||
|
|
|
@ -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)";
|
||||||
|
|
|
@ -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!");;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue