[ 6.0.100-preview.1.21077.11] dotnet hash -h displays help for dotnet SDK not for dotnet hash
See original GitHub issueApplication Name: dotnet hash global tool app OS: Windows 10 RS5 CPU: X64 .NET Build Number: 6.0.100-preview.1.21077.11 DevDiv bug: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1271105
Verify Scenarios: 1). Windows 10 RS5 X64 + .NET Core SDK build 6.0.100-preview.1.21077.11: Fail 2). Windows 10 RS5 X64 + .NET Core SDK build 5.0.102: Pass
Repro steps
- Install app : dotnet tool install TheBlueSky.DotNet.Tools.SwiftHash --global
- Run : dotnet hash -h
Expected Result: It should display help menu for dotnet hash global tool app
Actual Result: It displays help menu for dotnet SDK, same as dotnet -h
More Examples
dotnet hash -h Displays dotnet SDK help menu
dotnet hash -? Displays dotnet SDK help menu
dotnet hash --help Displays dotnet SDK help menu
dotnet hash -help OK
dotnet-hash -h OK
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
bank-vaults [vault-secrets-webhook] service account name not ...
Not able to mutate secrets if the operator (vault) and the webhook are in ... [ 6.0.100-preview.1.21077.11] dotnet hash -h displays help for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sfoslund We tried with latest master daily build, your fix for “-h” work fine, but we think this issue is not only related to ‘-h’, it will repro whenever the following ‘sdk-options’ conflicts with global tool app’s options.
Another example about global tool option conflict with sdk option: Repro steps:
Expected Result: it should show dotnet ignore tool version
Actual Result: It shows dotnet sdk version.
Our trying:
(dotnet ignore --version should work the same way with dotnet-ignore --version, but it is working as dotnet --version here)
Findings: This issue happens not only for “-h” or “–version”, if any global tool has the same options like “-d” or “–info” with sdk-option, then it will also conflict.
Verified with master branch build: 6.0.100-preview.2.21119.3