Skip to content

Commit ad0a113

Browse files
committed
fix(help): Remove redundant information from new/init
Auditing all of the `--help` in prep for #12578 and noticed that we list the VCS information twice, once on our end and once by clap.
1 parent 87a14ed commit ad0a113

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ pub trait CommandExt: Sized {
260260
opt(
261261
"vcs",
262262
"Initialize a new repository for the given version \
263-
control system (git, hg, pijul, or fossil) or do not \
264-
initialize any version control at all (none), overriding \
263+
control system, overriding \
265264
a global configuration.",
266265
)
267266
.value_name("VCS")

tests/testsuite/cargo_init/help/stdout.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ Arguments:
66
[path] [default: .]
77

88
Options:
9-
--vcs <VCS> Initialize a new repository for the given version control system (git,
10-
hg, pijul, or fossil) or do not initialize any version control at all
11-
(none), overriding a global configuration. [possible values: git, hg,
12-
pijul, fossil, none]
9+
--vcs <VCS> Initialize a new repository for the given version control system,
10+
overriding a global configuration. [possible values: git, hg, pijul,
11+
fossil, none]
1312
--bin Use a binary (application) template [default]
1413
--lib Use a library template
1514
--edition <YEAR> Edition to set for the crate generated [possible values: 2015, 2018,

tests/testsuite/cargo_new/help/stdout.log

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ Arguments:
66
<path>
77

88
Options:
9-
--vcs <VCS> Initialize a new repository for the given version control system (git,
10-
hg, pijul, or fossil) or do not initialize any version control at all
11-
(none), overriding a global configuration. [possible values: git, hg,
12-
pijul, fossil, none]
9+
--vcs <VCS> Initialize a new repository for the given version control system,
10+
overriding a global configuration. [possible values: git, hg, pijul,
11+
fossil, none]
1312
--bin Use a binary (application) template [default]
1413
--lib Use a library template
1514
--edition <YEAR> Edition to set for the crate generated [possible values: 2015, 2018,

0 commit comments

Comments
 (0)