clarify profile used for 'cargo install --debug'

This commit is contained in:
Ralf Jung 2022-07-13 19:34:37 -04:00
parent 44684e0dca
commit 79164d1ae5
2 changed files with 5 additions and 2 deletions

View file

@ -55,7 +55,10 @@ pub fn cli() -> App {
.arg(flag("no-track", "Do not save tracking information"))
.arg_features()
.arg_profile("Install artifacts with the specified profile")
.arg(flag("debug", "Build in debug mode instead of release mode"))
.arg(flag(
"debug",
"Build in debug mode (with the 'dev' profile) instead of release mode",
))
.arg_targets_bins_examples(
"Install only the specified binary",
"Install all binaries",

View file

@ -246,7 +246,7 @@ whether or not [`rpath`] is enabled.
#### dev
The `dev` profile is used for normal development and debugging. It is the
default for build commands like [`cargo build`].
default for build commands like [`cargo build`], and is used for `cargo install --debug`.
The default settings for the `dev` profile are: