Skip to content

Commit

Permalink
fix(help): Remove redundant information from new/init
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
epage committed Aug 29, 2023
1 parent 87a14ed commit ad0a113
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 ad0a113

Please sign in to comment.