Skip to content

Commit

Permalink
Auto merge of rust-lang#12594 - epage:help-redundant, r=weihanglo
Browse files Browse the repository at this point in the history
fix(help): Remove redundant information from new/init

Auditing all of the `--help` in prep for rust-lang#12578 and noticed that we list the VCS information twice, once on our end and once by clap.
  • Loading branch information
bors committed Aug 29, 2023
2 parents 96fe1c9 + ad0a113 commit a873df5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ pub trait CommandExt: Sized {
opt(
"vcs",
"Initialize a new repository for the given version \
control system (git, hg, pijul, or fossil) or do not \
initialize any version control at all (none), overriding \
control system, overriding \
a global configuration.",
)
.value_name("VCS")
Expand Down
7 changes: 3 additions & 4 deletions tests/testsuite/cargo_init/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Arguments:
[path] [default: .]

Options:
--vcs <VCS> Initialize a new repository for the given version control system (git,
hg, pijul, or fossil) or do not initialize any version control at all
(none), overriding a global configuration. [possible values: git, hg,
pijul, fossil, none]
--vcs <VCS> Initialize a new repository for the given version control system,
overriding a global configuration. [possible values: git, hg, pijul,
fossil, none]
--bin Use a binary (application) template [default]
--lib Use a library template
--edition <YEAR> Edition to set for the crate generated [possible values: 2015, 2018,
Expand Down
7 changes: 3 additions & 4 deletions tests/testsuite/cargo_new/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ Arguments:
<path>

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

0 comments on commit a873df5

Please sign in to comment.