rustup icon indicating copy to clipboard operation
rustup copied to clipboard

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

Open gmatht opened this issue 1 year ago • 2 comments

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.

gmatht avatar Sep 18 '24 05:09 gmatht