Skip to content

Typo correction suggestions should go to IConsole.Error rather than IConsole.Out #2003

Open
@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

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 #2001 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions