-
Notifications
You must be signed in to change notification settings - Fork 413
Open
Description
In --option=argument syntax, if the argument is not accepted by the option, then typo correction can suggest replacing the argument with a different option. That should not happen when they are connected by an equals sign.
Demo
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup>
</Project>using System.CommandLine;
return new RootCommand().Invoke(args);$ dotnet run -- --version=h-
'h-' was not matched. Did you mean one of the following?
-h
1.0.0
Metadata
Metadata
Assignees
Labels
No labels