When rustup acts as a proxy (to cargo, rustc, any others?), it does too good a job of hiding itself. cargo --help gives no hint to noobs like me that there is somewhere else to look at (like rustup --help) to understand examples featuring a cargo +toolchain command.
cargo --help, or at least cargo +stable --help, should either:
- Say up front or down below that they're a wrapper for cargo with an additional option.
- List the +toolchain option among cargo's options (but still make clear that is not part of cargo, not documented there).
- Pass a secret option to the proxy, and/or rely on cargo and others to document the option itself? I sure don't like it.
- Do something else?
Looking at the code, this looks like a non-trivial job for the clap crate to be exploited at src/cli/proxy_mode.rs. Which I'll look into myself, unless someone says it's a bad idea or knows how already.