src/doc/man/cargo-help.md
cargo-help --- Get help for a Cargo command
cargo help [subcommand]
Prints a help message for the given command.
For commands with subcommands, separate the command levels with spaces. For
example, cargo help report future-incompatibilities displays help for the
cargo report future-incompatibilities command.
Spaces separate hierarchy levels only between a parent command and its
subcommands. Dashes that are part of a command's name, such as
generate-lockfile, must always be preserved.
Multiple command levels can also be written as a single dash-joined word.
For example, cargo help report-future-incompatibilities is equivalent to
cargo help report future-incompatibilities.
{{#options}} {{> options-display }} {{/options}}
{{#options}} {{> options-locked }} {{/options}}
{{> section-options-common }}
{{> section-environment }}
{{> section-exit-status }}
Get help for a command:
cargo help build
Get help for a nested command:
cargo help report future-incompatibilities
The dash-joined form also works:
cargo help report-future-incompatibilities
Help is also available with the --help flag:
cargo build --help
{{man "cargo" 1}}