Skip to content

"rustup add target ..." could warn user that they meant "rustup target add ..." #4024

Open
@gmatht

Description

@gmatht

Problem you are trying to solve

The following error message isn't as helpful as it could be:

$ rustup add target x86_64-unknown-linux-gnux32
error: unrecognized subcommand 'x86_64-unknown-linux-gnux32'

Usage: rustup target <COMMAND>

For more information, try '--help'.

Solution you'd like

I think it would be more useful if we added: Did you mean "rustup target add x86_64-unknown-linux-gnux32"?.

Notes

"add target" is the more natural language way of writing the command, so I feel we should help users who make this mistake.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions