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:
parent
2c03ff9bcf
commit
2f26f10ed2
15 changed files with 69 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Add table
Reference in a new issue