diff --git a/src/doc/man/generated_txt/cargo-add.txt b/src/doc/man/generated_txt/cargo-add.txt
index 0bf279df1e5..69d844f4169 100644
--- a/src/doc/man/generated_txt/cargo-add.txt
+++ b/src/doc/man/generated_txt/cargo-add.txt
@@ -191,7 +191,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-bench.txt b/src/doc/man/generated_txt/cargo-bench.txt
index 0fbcb8be464..bd2054fb150 100644
--- a/src/doc/man/generated_txt/cargo-bench.txt
+++ b/src/doc/man/generated_txt/cargo-bench.txt
@@ -376,7 +376,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-build.txt b/src/doc/man/generated_txt/cargo-build.txt
index da9284c8e4c..57b6c7f855c 100644
--- a/src/doc/man/generated_txt/cargo-build.txt
+++ b/src/doc/man/generated_txt/cargo-build.txt
@@ -318,7 +318,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-check.txt b/src/doc/man/generated_txt/cargo-check.txt
index 0b8a1ca6a55..dfae7ded527 100644
--- a/src/doc/man/generated_txt/cargo-check.txt
+++ b/src/doc/man/generated_txt/cargo-check.txt
@@ -303,7 +303,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-clean.txt b/src/doc/man/generated_txt/cargo-clean.txt
index c0fd956bbb7..17a630609a7 100644
--- a/src/doc/man/generated_txt/cargo-clean.txt
+++ b/src/doc/man/generated_txt/cargo-clean.txt
@@ -132,7 +132,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-doc.txt b/src/doc/man/generated_txt/cargo-doc.txt
index b6805929262..c03dedd133b 100644
--- a/src/doc/man/generated_txt/cargo-doc.txt
+++ b/src/doc/man/generated_txt/cargo-doc.txt
@@ -274,7 +274,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-fetch.txt b/src/doc/man/generated_txt/cargo-fetch.txt
index ba866323407..cf6e9962bb1 100644
--- a/src/doc/man/generated_txt/cargo-fetch.txt
+++ b/src/doc/man/generated_txt/cargo-fetch.txt
@@ -117,7 +117,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-fix.txt b/src/doc/man/generated_txt/cargo-fix.txt
index 2b94fdbcb85..8d01e521944 100644
--- a/src/doc/man/generated_txt/cargo-fix.txt
+++ b/src/doc/man/generated_txt/cargo-fix.txt
@@ -376,7 +376,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-generate-lockfile.txt b/src/doc/man/generated_txt/cargo-generate-lockfile.txt
index ef15886da95..263b3b0d4d2 100644
--- a/src/doc/man/generated_txt/cargo-generate-lockfile.txt
+++ b/src/doc/man/generated_txt/cargo-generate-lockfile.txt
@@ -92,7 +92,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-init.txt b/src/doc/man/generated_txt/cargo-init.txt
index 6d1b5ccd653..35430437d1a 100644
--- a/src/doc/man/generated_txt/cargo-init.txt
+++ b/src/doc/man/generated_txt/cargo-init.txt
@@ -100,7 +100,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-install.txt b/src/doc/man/generated_txt/cargo-install.txt
index b13c3d78eb1..68dab27aa76 100644
--- a/src/doc/man/generated_txt/cargo-install.txt
+++ b/src/doc/man/generated_txt/cargo-install.txt
@@ -355,7 +355,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-locate-project.txt b/src/doc/man/generated_txt/cargo-locate-project.txt
index bc11890e998..612fbc943df 100644
--- a/src/doc/man/generated_txt/cargo-locate-project.txt
+++ b/src/doc/man/generated_txt/cargo-locate-project.txt
@@ -83,7 +83,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-login.txt b/src/doc/man/generated_txt/cargo-login.txt
index da61f370256..a3309b1116a 100644
--- a/src/doc/man/generated_txt/cargo-login.txt
+++ b/src/doc/man/generated_txt/cargo-login.txt
@@ -75,7 +75,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-metadata.txt b/src/doc/man/generated_txt/cargo-metadata.txt
index 64f1e74906e..8dec32b1fab 100644
--- a/src/doc/man/generated_txt/cargo-metadata.txt
+++ b/src/doc/man/generated_txt/cargo-metadata.txt
@@ -405,7 +405,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-new.txt b/src/doc/man/generated_txt/cargo-new.txt
index 6590aaf0e02..b74103ffacf 100644
--- a/src/doc/man/generated_txt/cargo-new.txt
+++ b/src/doc/man/generated_txt/cargo-new.txt
@@ -95,7 +95,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-owner.txt b/src/doc/man/generated_txt/cargo-owner.txt
index 18a52503a4b..391d87224ab 100644
--- a/src/doc/man/generated_txt/cargo-owner.txt
+++ b/src/doc/man/generated_txt/cargo-owner.txt
@@ -102,7 +102,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-package.txt b/src/doc/man/generated_txt/cargo-package.txt
index c5e33a5d2e9..d3c5a6b8814 100644
--- a/src/doc/man/generated_txt/cargo-package.txt
+++ b/src/doc/man/generated_txt/cargo-package.txt
@@ -244,7 +244,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-pkgid.txt b/src/doc/man/generated_txt/cargo-pkgid.txt
index 4564ade6bfc..18eaf2e9ffa 100644
--- a/src/doc/man/generated_txt/cargo-pkgid.txt
+++ b/src/doc/man/generated_txt/cargo-pkgid.txt
@@ -122,7 +122,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-publish.txt b/src/doc/man/generated_txt/cargo-publish.txt
index e356c2d73ee..7942f332f5b 100644
--- a/src/doc/man/generated_txt/cargo-publish.txt
+++ b/src/doc/man/generated_txt/cargo-publish.txt
@@ -210,7 +210,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-remove.txt b/src/doc/man/generated_txt/cargo-remove.txt
index 7370bbb7314..a01f2a213c7 100644
--- a/src/doc/man/generated_txt/cargo-remove.txt
+++ b/src/doc/man/generated_txt/cargo-remove.txt
@@ -111,7 +111,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-run.txt b/src/doc/man/generated_txt/cargo-run.txt
index 2594ff94797..855532609ee 100644
--- a/src/doc/man/generated_txt/cargo-run.txt
+++ b/src/doc/man/generated_txt/cargo-run.txt
@@ -222,7 +222,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-rustc.txt b/src/doc/man/generated_txt/cargo-rustc.txt
index 473d6a4f0bf..eb7e167d376 100644
--- a/src/doc/man/generated_txt/cargo-rustc.txt
+++ b/src/doc/man/generated_txt/cargo-rustc.txt
@@ -320,7 +320,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-rustdoc.txt b/src/doc/man/generated_txt/cargo-rustdoc.txt
index dcd9c566efc..3f37652a716 100644
--- a/src/doc/man/generated_txt/cargo-rustdoc.txt
+++ b/src/doc/man/generated_txt/cargo-rustdoc.txt
@@ -290,7 +290,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-search.txt b/src/doc/man/generated_txt/cargo-search.txt
index 42381cf4a45..e293240d6ba 100644
--- a/src/doc/man/generated_txt/cargo-search.txt
+++ b/src/doc/man/generated_txt/cargo-search.txt
@@ -72,7 +72,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-test.txt b/src/doc/man/generated_txt/cargo-test.txt
index 4ab1841e120..c70842d4a89 100644
--- a/src/doc/man/generated_txt/cargo-test.txt
+++ b/src/doc/man/generated_txt/cargo-test.txt
@@ -394,7 +394,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-tree.txt b/src/doc/man/generated_txt/cargo-tree.txt
index b8e5c98f557..3ce00e89c40 100644
--- a/src/doc/man/generated_txt/cargo-tree.txt
+++ b/src/doc/man/generated_txt/cargo-tree.txt
@@ -303,7 +303,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-uninstall.txt b/src/doc/man/generated_txt/cargo-uninstall.txt
index dcf3d55f75a..3d30775b2bb 100644
--- a/src/doc/man/generated_txt/cargo-uninstall.txt
+++ b/src/doc/man/generated_txt/cargo-uninstall.txt
@@ -84,7 +84,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-update.txt b/src/doc/man/generated_txt/cargo-update.txt
index a6cec24e30b..0c2497d31fe 100644
--- a/src/doc/man/generated_txt/cargo-update.txt
+++ b/src/doc/man/generated_txt/cargo-update.txt
@@ -122,7 +122,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-vendor.txt b/src/doc/man/generated_txt/cargo-vendor.txt
index 0525e463b35..97dfcb02efc 100644
--- a/src/doc/man/generated_txt/cargo-vendor.txt
+++ b/src/doc/man/generated_txt/cargo-vendor.txt
@@ -118,7 +118,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-verify-project.txt b/src/doc/man/generated_txt/cargo-verify-project.txt
index f641ce911d0..8449a154274 100644
--- a/src/doc/man/generated_txt/cargo-verify-project.txt
+++ b/src/doc/man/generated_txt/cargo-verify-project.txt
@@ -95,7 +95,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo-yank.txt b/src/doc/man/generated_txt/cargo-yank.txt
index e07e52626fe..057a569bf14 100644
--- a/src/doc/man/generated_txt/cargo-yank.txt
+++ b/src/doc/man/generated_txt/cargo-yank.txt
@@ -99,7 +99,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/generated_txt/cargo.txt b/src/doc/man/generated_txt/cargo.txt
index 9ebf6ef2150..297da56caa7 100644
--- a/src/doc/man/generated_txt/cargo.txt
+++ b/src/doc/man/generated_txt/cargo.txt
@@ -201,7 +201,9 @@ OPTIONS
Changes the current working directory before executing any specified
operations. This affects things like where cargo looks by default
for the project manifest (Cargo.toml), as well as the directories
- searched for discovering .cargo/config.toml, for example.
+ searched for discovering .cargo/config.toml, for example. This
+ option must appear before the command name, for example cargo -C
+ path/to/my-project build.
-h, --help
Prints help information.
diff --git a/src/doc/man/includes/section-options-common.md b/src/doc/man/includes/section-options-common.md
index db09f977fd0..efae1219a75 100644
--- a/src/doc/man/includes/section-options-common.md
+++ b/src/doc/man/includes/section-options-common.md
@@ -19,7 +19,8 @@ See the [command-line overrides section](../reference/config.html#command-line-o
{{#option "`-C` _PATH_"}}
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (`Cargo.toml`), as well as
-the directories searched for discovering `.cargo/config.toml`, for example.
+the directories searched for discovering `.cargo/config.toml`, for example. This option must
+appear before the command name, for example `cargo -C path/to/my-project build`.
{{/option}}
{{#option "`-h`" "`--help`"}}
diff --git a/src/doc/src/commands/cargo-add.md b/src/doc/src/commands/cargo-add.md
index acd80034f1c..8cdaa3157f4 100644
--- a/src/doc/src/commands/cargo-add.md
+++ b/src/doc/src/commands/cargo-add.md
@@ -225,7 +225,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-bench.md b/src/doc/src/commands/cargo-bench.md
index c3a7a2bbb19..3006eca8166 100644
--- a/src/doc/src/commands/cargo-bench.md
+++ b/src/doc/src/commands/cargo-bench.md
@@ -438,7 +438,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-build.md b/src/doc/src/commands/cargo-build.md
index 6b60097aebf..a68efeca6e0 100644
--- a/src/doc/src/commands/cargo-build.md
+++ b/src/doc/src/commands/cargo-build.md
@@ -374,7 +374,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-check.md b/src/doc/src/commands/cargo-check.md
index 18b0e2b5ee7..aa14776ce53 100644
--- a/src/doc/src/commands/cargo-check.md
+++ b/src/doc/src/commands/cargo-check.md
@@ -355,7 +355,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-clean.md b/src/doc/src/commands/cargo-clean.md
index 369837920fe..4f2b49fd0c8 100644
--- a/src/doc/src/commands/cargo-clean.md
+++ b/src/doc/src/commands/cargo-clean.md
@@ -159,7 +159,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-doc.md b/src/doc/src/commands/cargo-doc.md
index f1150f56701..9f1110c483e 100644
--- a/src/doc/src/commands/cargo-doc.md
+++ b/src/doc/src/commands/cargo-doc.md
@@ -329,7 +329,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-fetch.md b/src/doc/src/commands/cargo-fetch.md
index b461619f64b..e8693b583f3 100644
--- a/src/doc/src/commands/cargo-fetch.md
+++ b/src/doc/src/commands/cargo-fetch.md
@@ -133,7 +133,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-fix.md b/src/doc/src/commands/cargo-fix.md
index 1b45fc27ff2..aa4387635a1 100644
--- a/src/doc/src/commands/cargo-fix.md
+++ b/src/doc/src/commands/cargo-fix.md
@@ -435,7 +435,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-generate-lockfile.md b/src/doc/src/commands/cargo-generate-lockfile.md
index 65c0591b5af..47e5250fdd8 100644
--- a/src/doc/src/commands/cargo-generate-lockfile.md
+++ b/src/doc/src/commands/cargo-generate-lockfile.md
@@ -107,7 +107,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-init.md b/src/doc/src/commands/cargo-init.md
index 83f681fdc24..06e45a0f018 100644
--- a/src/doc/src/commands/cargo-init.md
+++ b/src/doc/src/commands/cargo-init.md
@@ -120,7 +120,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-install.md b/src/doc/src/commands/cargo-install.md
index 9b8c4084e73..e8ec32b1729 100644
--- a/src/doc/src/commands/cargo-install.md
+++ b/src/doc/src/commands/cargo-install.md
@@ -402,7 +402,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-locate-project.md b/src/doc/src/commands/cargo-locate-project.md
index efecd255c3a..16e05da323b 100644
--- a/src/doc/src/commands/cargo-locate-project.md
+++ b/src/doc/src/commands/cargo-locate-project.md
@@ -102,7 +102,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-login.md b/src/doc/src/commands/cargo-login.md
index 63a885e9b59..0fc2e3bf61d 100644
--- a/src/doc/src/commands/cargo-login.md
+++ b/src/doc/src/commands/cargo-login.md
@@ -88,7 +88,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-metadata.md b/src/doc/src/commands/cargo-metadata.md
index fc89e525e05..7dbb371f812 100644
--- a/src/doc/src/commands/cargo-metadata.md
+++ b/src/doc/src/commands/cargo-metadata.md
@@ -437,7 +437,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-new.md b/src/doc/src/commands/cargo-new.md
index c08bfc05536..f1608e37813 100644
--- a/src/doc/src/commands/cargo-new.md
+++ b/src/doc/src/commands/cargo-new.md
@@ -115,7 +115,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-owner.md b/src/doc/src/commands/cargo-owner.md
index 17740a2ec37..fe3c3c0ff1b 100644
--- a/src/doc/src/commands/cargo-owner.md
+++ b/src/doc/src/commands/cargo-owner.md
@@ -126,7 +126,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-package.md b/src/doc/src/commands/cargo-package.md
index 827f25724fd..8c5a51668eb 100644
--- a/src/doc/src/commands/cargo-package.md
+++ b/src/doc/src/commands/cargo-package.md
@@ -292,7 +292,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-pkgid.md b/src/doc/src/commands/cargo-pkgid.md
index b7fe6d2dfff..a6aeeeaf89a 100644
--- a/src/doc/src/commands/cargo-pkgid.md
+++ b/src/doc/src/commands/cargo-pkgid.md
@@ -136,7 +136,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-publish.md b/src/doc/src/commands/cargo-publish.md
index ee49ec1f1fc..2e4e2e2bcf2 100644
--- a/src/doc/src/commands/cargo-publish.md
+++ b/src/doc/src/commands/cargo-publish.md
@@ -258,7 +258,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-remove.md b/src/doc/src/commands/cargo-remove.md
index 61718af5fa4..ce491864c78 100644
--- a/src/doc/src/commands/cargo-remove.md
+++ b/src/doc/src/commands/cargo-remove.md
@@ -144,7 +144,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-run.md b/src/doc/src/commands/cargo-run.md
index 7e9d7c630fb..2393c519ab4 100644
--- a/src/doc/src/commands/cargo-run.md
+++ b/src/doc/src/commands/cargo-run.md
@@ -271,7 +271,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-rustc.md b/src/doc/src/commands/cargo-rustc.md
index 0b83b195f55..28980fcbdae 100644
--- a/src/doc/src/commands/cargo-rustc.md
+++ b/src/doc/src/commands/cargo-rustc.md
@@ -368,7 +368,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-rustdoc.md b/src/doc/src/commands/cargo-rustdoc.md
index 133fa35f26d..aada321c5a0 100644
--- a/src/doc/src/commands/cargo-rustdoc.md
+++ b/src/doc/src/commands/cargo-rustdoc.md
@@ -348,7 +348,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-search.md b/src/doc/src/commands/cargo-search.md
index 6f2dedd51eb..7a211c8d713 100644
--- a/src/doc/src/commands/cargo-search.md
+++ b/src/doc/src/commands/cargo-search.md
@@ -92,7 +92,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-test.md b/src/doc/src/commands/cargo-test.md
index 8e936a2abc5..5cfa66a6626 100644
--- a/src/doc/src/commands/cargo-test.md
+++ b/src/doc/src/commands/cargo-test.md
@@ -461,7 +461,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-tree.md b/src/doc/src/commands/cargo-tree.md
index b13d2395eb1..d89e0fe583c 100644
--- a/src/doc/src/commands/cargo-tree.md
+++ b/src/doc/src/commands/cargo-tree.md
@@ -339,7 +339,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-uninstall.md b/src/doc/src/commands/cargo-uninstall.md
index 2fb7490b901..0de68fc5f38 100644
--- a/src/doc/src/commands/cargo-uninstall.md
+++ b/src/doc/src/commands/cargo-uninstall.md
@@ -102,7 +102,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-update.md b/src/doc/src/commands/cargo-update.md
index 4cc8ddd64bc..2b5f350f150 100644
--- a/src/doc/src/commands/cargo-update.md
+++ b/src/doc/src/commands/cargo-update.md
@@ -147,7 +147,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-vendor.md b/src/doc/src/commands/cargo-vendor.md
index 095e4418778..d480dcc555c 100644
--- a/src/doc/src/commands/cargo-vendor.md
+++ b/src/doc/src/commands/cargo-vendor.md
@@ -143,7 +143,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-verify-project.md b/src/doc/src/commands/cargo-verify-project.md
index 1134b38e4df..77ac2594aa9 100644
--- a/src/doc/src/commands/cargo-verify-project.md
+++ b/src/doc/src/commands/cargo-verify-project.md
@@ -113,7 +113,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo-yank.md b/src/doc/src/commands/cargo-yank.md
index b1371185e02..79f238785f3 100644
--- a/src/doc/src/commands/cargo-yank.md
+++ b/src/doc/src/commands/cargo-yank.md
@@ -122,7 +122,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/doc/src/commands/cargo.md b/src/doc/src/commands/cargo.md
index 9e3392fd410..dc604fcbdff 100644
--- a/src/doc/src/commands/cargo.md
+++ b/src/doc/src/commands/cargo.md
@@ -230,7 +230,8 @@ See the command-line o
-C
PATH
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (Cargo.toml
), as well as
-the directories searched for discovering .cargo/config.toml
, for example.
+the directories searched for discovering .cargo/config.toml
, for example. This option must
+appear before the command name, for example cargo -C path/to/my-project build
.
-h
diff --git a/src/etc/man/cargo-add.1 b/src/etc/man/cargo-add.1
index 8bbfb6d52f7..069e0e40966 100644
--- a/src/etc/man/cargo-add.1
+++ b/src/etc/man/cargo-add.1
@@ -243,7 +243,8 @@ See the \fIcommand\-line overrides section\fR