Skip to content

Commit

Permalink
fix: Update help headings to match clap
Browse files Browse the repository at this point in the history
This was missed when upgrading to clap v4

Fixes #11238
  • Loading branch information
epage committed Oct 14, 2022
1 parent 3513780 commit f46da37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bin/cargo/commands/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Example uses:
])
.arg_quiet()
.arg_dry_run("Don't actually write the manifest")
.next_help_heading("SOURCE")
.next_help_heading("Source")
.args([
clap::Arg::new("path")
.long("path")
Expand Down Expand Up @@ -131,7 +131,7 @@ This is the catch all, handling hashes to named references in remote repositorie
.value_name("NAME")
.help("Package registry for this dependency"),
])
.next_help_heading("SECTION")
.next_help_heading("Section")
.args([
flag("dev",
"Add as development dependency")
Expand Down
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn cli() -> clap::Command {
.arg_manifest_path()
.arg_quiet()
.arg_dry_run("Don't actually write the manifest")
.next_help_heading("SECTION")
.next_help_heading("Section")
.args([
clap::Arg::new("dev")
.long("dev")
Expand Down

0 comments on commit f46da37

Please sign in to comment.