dotnet / dotnet/command-line-api
Typo correction suggestions should go to IConsole.Error rather than IConsole.Out
- Lingua principale
- C#
- Stelle
- 3.7k
- Fork
- 428
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Search the repository for System.CommandLine.Invocation.TypoCorrection and inspect where it writes to IConsole.Out or IConsole.Error. Confirm that typo suggestions accompany the “Unrecognized command or argument” message, then verify the relevant command-line behavior after the output destination is corrected.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100