dotnet / dotnet/command-line-api
Typo correction suggestions should go to IConsole.Error rather than IConsole.Out
- Langage dominant
- C#
- Étoiles
- 3.7k
- Forks
- 428
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Recherchez dans le dépôt System.CommandLine.Invocation.TypoCorrection et examinez les endroits où il écrit dans IConsole.Out ou IConsole.Error. Confirmez que les suggestions de correction accompagnent le message « Unrecognized command or argument », puis vérifiez le comportement pertinent de la ligne de commande une fois la destination de sortie corrigée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100