From 11270a436b0fe19ea171db5c11b58d531ff255ba Mon Sep 17 00:00:00 2001 From: Jon Sequeira Date: Tue, 14 Mar 2017 16:13:49 -0700 Subject: [PATCH] list command help text fix --- src/dotnet/commands/dotnet-list/ListCommandParser.cs | 4 +++- test/dotnet-list-reference.Tests/GivenDotnetListReference.cs | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dotnet/commands/dotnet-list/ListCommandParser.cs b/src/dotnet/commands/dotnet-list/ListCommandParser.cs index 61e5129da..ff03ab588 100644 --- a/src/dotnet/commands/dotnet-list/ListCommandParser.cs +++ b/src/dotnet/commands/dotnet-list/ListCommandParser.cs @@ -2,6 +2,7 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.DotNet.Cli.CommandLine; +using LocalizableStrings = Microsoft.DotNet.Tools.List.ProjectToProjectReferences.LocalizableStrings; namespace Microsoft.DotNet.Cli { @@ -16,7 +17,8 @@ namespace Microsoft.DotNet.Cli "The project file to operate on. If a file is not specified, the command will search the current directory for one.") .DefaultToCurrentDirectory(), CommonOptions.HelpOption(), - Create.Command("reference", "Command to list project to project references", + Create.Command("reference", + LocalizableStrings.AppFullName, Accept.ExactlyOneArgument(), CommonOptions.HelpOption())); } diff --git a/test/dotnet-list-reference.Tests/GivenDotnetListReference.cs b/test/dotnet-list-reference.Tests/GivenDotnetListReference.cs index 8d7be59ad..499c1b74e 100644 --- a/test/dotnet-list-reference.Tests/GivenDotnetListReference.cs +++ b/test/dotnet-list-reference.Tests/GivenDotnetListReference.cs @@ -18,10 +18,11 @@ namespace Microsoft.DotNet.Cli.List.Reference.Tests Usage: dotnet list reference [options] Arguments: - The project file to operate on. If a file is not specified, the command will search the current directory for one. + The project file to operate on. If a file is not specified, the command will search the current directory for one. Options: - -h|--help Show help information"; + -h, --help Show help information +"; const string FrameworkNet451Arg = "-f net451"; const string ConditionFrameworkNet451 = "== 'net451'";