dotnet / dotnet/command-line-api
Typo correction suggestions should go to IConsole.Error rather than IConsole.Out
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
System.CommandLine.Invocation.TypoCorrection writes to IConsole.Out. It should instead write to IConsole.Error, because the output does not come from an invoked Command and instead relates to the "Unrecognized command or argument" message that was written to IConsole.Error.
Observed in 2.0.0-beta4.22272.1.
_Originally noted in https://github.com/dotnet/command-line-api/pull/2001#discussion_r1054777220_
Contributor guide
Assessment
This issue has not been assessed yet.