dotnet / dotnet/sdk

`dotnet tool --help` package ID argument mismatch

Open
#54,603 0 comments 0 reactions 0 assignees View on GitHub
Area-Tools untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug

When running `dotnet tool --help`, there are inconsistencies with the package ID argument name

```pws
PS: C:\Users\user\Development\project> dotnet tool --help
Description:
Install or work with tools that extend the .NET experience.

Usage:
dotnet tool [command] [options]

Options:
-?, -h, --help Show command line help.

Commands:
install Install global or local tool. Local tools are added to manifest and restored.
uninstall Uninstall a global tool or local tool.
update Update a global or local tool.
list List tools installed globally or locally.
run Run a local tool. Note that this command cannot be used to run a global tool.
search Search dotnet tools in nuget.org
restore Restore tools defined in the local tool manifest.
exec, execute Executes a tool from source without permanently installing it.
```

### Steps to reproduce

Run `dotnet tool --help`

### Expected behavior

Arguments should have the same casing.

### Actual behavior

Arguments have different names and casing

### Is this a regression?

_No response_

### Are there any workarounds?

_No response_

### dotnet --info output

```console
10.0.300
PS C:\Users\eduardovil\Development\Tools\dotnet-sln-sync> dotnet --info
.NET SDK:
Version: 10.0.300
Commit: caa81fa497
Workload version: 10.0.300-manifests.b47d7e23
MSBuild version: 18.6.3+caa81fa49

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-arm64
Base Path: C:\Program Files\dotnet\sdk\10.0.300\

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.8
Architecture: arm64
Commit: 94ea82652c

.NET SDKs installed:
10.0.300 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x64 [C:\Program Files\dotnet\x64]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
```

### IDE version

_No response_

### Other details

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.