dotnet / dotnet/command-line-api
Options with typos are treated as unmatched arguments
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Repro:
```
dotnet tool install dotnet-ilverify --global --version 7.0.0-rc.1.22426.10`
ilverify --referenci c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
```
ILVerify source: https://github.com/dotnet/runtime/blob/main/src/coreclr/tools/ILVerify/Program.cs
Actual result:
`Error: No files matching --referenci`
Expected result:
`Error: Bad option --referenci`
Context: https://github.com/dotnet/runtime/pull/72082#issuecomment-1229134151 , https://github.com/dotnet/runtime/pull/72082#issuecomment-1256337732
Contributor guide
Assessment
This issue has not been assessed yet.