diff --git a/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs b/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs index 1b229c1dc353..7a56ba3e4268 100644 --- a/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs +++ b/src/Cli/Microsoft.DotNet.Cli.Definitions/Commands/Test/TestCommandDefinition.MicrosoftTestingPlatform.cs @@ -183,6 +183,7 @@ public MicrosoftTestingPlatform() Options.Add(VerbosityOption); Options.Add(NoRestoreOption); Options.Add(NoBuildOption); + NoLogoOption.Aliases.Add("--no-banner"); Options.Add(NoLogoOption); Options.Add(NoDependenciesOption); Options.Add(ArtifactsPathOption); diff --git a/test/dotnet.Tests/CommandTests/Test/TestCommandParserTests.cs b/test/dotnet.Tests/CommandTests/Test/TestCommandParserTests.cs index 4a58919f7897..b20d4ec0e328 100644 --- a/test/dotnet.Tests/CommandTests/Test/TestCommandParserTests.cs +++ b/test/dotnet.Tests/CommandTests/Test/TestCommandParserTests.cs @@ -96,6 +96,7 @@ public void MTPCommandIncludesNoDependenciesOption() [DataRow("--nologo")] [DataRow("-nologo")] [DataRow("/nologo")] + [DataRow("--no-banner")] public void MTPCommandTranslatesNoLogoOptionToNoBanner(string optionAlias) { var command = new TestCommandDefinition.MicrosoftTestingPlatform(); diff --git a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt index 37ddae23a9a3..3d5499203c9a 100644 --- a/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt +++ b/test/dotnet.Tests/CommandTests/Test/snapshots/MTPHelpSnapshotTests.VerifyMTPHelpOutput.verified.txt @@ -33,7 +33,7 @@ Options: -v, -verbosity Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. --no-restore Do not restore the project before building. [default: False] --no-build Do not build the project before testing. Implies --no-restore. [default: False] - -nologo, --no-logo Run test(s), without displaying Microsoft Testplatform banner [default: False] + -nologo, --no-banner, --no-logo Run test(s), without displaying Microsoft Testplatform banner [default: False] --no-dependencies Do not build project-to-project references and only build the specified project. [default: False] --artifacts-path The artifacts path. All output from the project, including build, publish, and pack output, will go in subfolders under the specified path. --ucr, --use-current-runtime Use current runtime as the target runtime. [default: False]