Skip to content

Commit 79164d1

Browse files
committed
clarify profile used for 'cargo install --debug'
1 parent 44684e0 commit 79164d1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/bin/cargo/commands/install.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ pub fn cli() -> App {
5555
.arg(flag("no-track", "Do not save tracking information"))
5656
.arg_features()
5757
.arg_profile("Install artifacts with the specified profile")
58-
.arg(flag("debug", "Build in debug mode instead of release mode"))
58+
.arg(flag(
59+
"debug",
60+
"Build in debug mode (with the 'dev' profile) instead of release mode",
61+
))
5962
.arg_targets_bins_examples(
6063
"Install only the specified binary",
6164
"Install all binaries",

src/doc/src/reference/profiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ whether or not [`rpath`] is enabled.
246246
#### dev
247247

248248
The `dev` profile is used for normal development and debugging. It is the
249-
default for build commands like [`cargo build`].
249+
default for build commands like [`cargo build`], and is used for `cargo install --debug`.
250250

251251
The default settings for the `dev` profile are:
252252

0 commit comments

Comments
 (0)