Fix missing package id error message for install tool command.

This commit fixes the error message that is displayed when the `install
tool` command is not given a package id to install.  Previously, only
`packageId` was output, which was confusing.

Fixes #8381.
This commit is contained in:
Peter Huene 2018-01-16 13:57:26 -08:00
parent 2c03ff9bcf
commit 2f26f10ed2
No known key found for this signature in database
GPG key ID: E1D265D820213D6A
15 changed files with 69 additions and 1 deletions

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Cli
{
return Create.Command("tool",
LocalizableStrings.CommandDescription,
Accept.ExactlyOneArgument(o => "packageId")
Accept.ExactlyOneArgument(errorMessage: o => LocalizableStrings.SpecifyExactlyOnePackageId)
.With(name: LocalizableStrings.PackageIdArgumentName,
description: LocalizableStrings.PackageIdArgumentDescription),
Create.Option(

View file

@ -123,6 +123,9 @@
<data name="PackageIdArgumentDescription" xml:space="preserve">
<value>NuGet Package Id of the tool to install.</value>
</data>
<data name="SpecifyExactlyOnePackageId" xml:space="preserve">
<value>Please specify one tool Package Id to install.</value>
</data>
<data name="VersionOptionDescription" xml:space="preserve">
<value>Version of the tool package in NuGet.</value>
</data>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

View file

@ -93,6 +93,11 @@ The error was:
<target state="new">PACKAGE_ID</target>
<note />
</trans-unit>
<trans-unit id="SpecifyExactlyOnePackageId">
<source>Please specify one tool Package Id to install.</source>
<target state="new">Please specify one tool Package Id to install.</target>
<note />
</trans-unit>
</body>
</file>
</xliff>