diff --git a/src/doc/man/generated_txt/cargo-add.txt b/src/doc/man/generated_txt/cargo-add.txt
index 0bf279df1..69d844f41 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 0fbcb8be4..bd2054fb1 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 da9284c8e..57b6c7f85 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 0b8a1ca6a..dfae7ded5 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 c0fd956bb..17a630609 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 b68059292..c03dedd13 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 ba8663234..cf6e9962b 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 2b94fdbcb..8d01e5219 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 ef15886da..263b3b0d4 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 6d1b5ccd6..35430437d 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 b13c3d78e..68dab27aa 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 bc11890e9..612fbc943 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 da61f3702..a3309b111 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 64f1e7490..8dec32b1f 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 6590aaf0e..b74103ffa 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 18a52503a..391d87224 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 c5e33a5d2..d3c5a6b88 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 4564ade6b..18eaf2e9f 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 e356c2d73..7942f332f 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 7370bbb73..a01f2a213 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 2594ff947..855532609 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 473d6a4f0..eb7e167d3 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 dcd9c566e..3f37652a7 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 42381cf4a..e293240d6 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 4ab1841e1..c70842d4a 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 b8e5c98f5..3ce00e89c 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 dcf3d55f7..3d30775b2 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 a6cec24e3..0c2497d31 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 0525e463b..97dfcb02e 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 f641ce911..8449a1542 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 e07e52626..057a569bf 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 9ebf6ef21..297da56ca 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 db09f977f..efae1219a 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 acd80034f..8cdaa3157 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 c3a7a2bbb..3006eca81 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 6b60097ae..a68efeca6 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 18b0e2b5e..aa14776ce 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 369837920..4f2b49fd0 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 f1150f567..9f1110c48 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 b461619f6..e8693b583 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 1b45fc27f..aa4387635 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 65c0591b5..47e5250fd 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 83f681fdc..06e45a0f0 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 9b8c4084e..e8ec32b17 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 efecd255c..16e05da32 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 63a885e9b..0fc2e3bf6 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 fc89e525e..7dbb371f8 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 c08bfc055..f1608e378 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 17740a2ec..fe3c3c0ff 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 827f25724..8c5a51668 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 b7fe6d2df..a6aeeeaf8 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 ee49ec1f1..2e4e2e2bc 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 61718af5f..ce491864c 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 7e9d7c630..2393c519a 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 0b83b195f..28980fcbd 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 133fa35f2..aada321c5 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 6f2dedd51..7a211c8d7 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 8e936a2ab..5cfa66a66 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 b13d2395e..d89e0fe58 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 2fb7490b9..0de68fc5f 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 4cc8ddd64..2b5f350f1 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 095e44187..d480dcc55 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 1134b38e4..77ac2594a 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 b1371185e..79f238785 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 9e3392fd4..dc604fcbd 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 8bbfb6d52..069e0e409 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