Skip to content

Commit 99ff79e

Browse files
committed
Auto merge of #11239 - epage:add, r=weihanglo
fix: Update help headings to match clap This was missed when upgrading to clap v4 Fixes #11238
2 parents b332991 + f46da37 commit 99ff79e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/cargo/commands/add.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Example uses:
8383
])
8484
.arg_quiet()
8585
.arg_dry_run("Don't actually write the manifest")
86-
.next_help_heading("SOURCE")
86+
.next_help_heading("Source")
8787
.args([
8888
clap::Arg::new("path")
8989
.long("path")
@@ -131,7 +131,7 @@ This is the catch all, handling hashes to named references in remote repositorie
131131
.value_name("NAME")
132132
.help("Package registry for this dependency"),
133133
])
134-
.next_help_heading("SECTION")
134+
.next_help_heading("Section")
135135
.args([
136136
flag("dev",
137137
"Add as development dependency")

src/bin/cargo/commands/remove.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn cli() -> clap::Command {
2020
.arg_manifest_path()
2121
.arg_quiet()
2222
.arg_dry_run("Don't actually write the manifest")
23-
.next_help_heading("SECTION")
23+
.next_help_heading("Section")
2424
.args([
2525
clap::Arg::new("dev")
2626
.long("dev")

0 commit comments

Comments
 (0)