Skip to content

cargo install --help should mention --root more clearly #11072

@bnoordhuis

Description

@bnoordhuis

Problem

$ cargo install --help
cargo-install 
Install a Rust binary. Default location is $HOME/.cargo/bin
<snip>

cargo tells you on the first line what the default location is but not how to override it. It is mentioned in the OPTIONS section but that's a wall of text, making it very easy to miss. It's effectively buried.

cargo help install mentions --root very clearly and I would suggest for cargo install --help to do the same.

Proposed Solution

Maybe change it to this?

Install a Rust binary. Default location is $HOME/.cargo/bin, override with --root.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cli-helpArea: built-in command-line helpC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions