From f46da373ba12da2f117acd2dcdd0ad4db8fd4bcf Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 14 Oct 2022 07:16:25 -0500 Subject: [PATCH] fix: Update help headings to match clap This was missed when upgrading to clap v4 Fixes #11238 --- src/bin/cargo/commands/add.rs | 4 ++-- src/bin/cargo/commands/remove.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/cargo/commands/add.rs b/src/bin/cargo/commands/add.rs index c46ee664324..1c389f6082f 100644 --- a/src/bin/cargo/commands/add.rs +++ b/src/bin/cargo/commands/add.rs @@ -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") @@ -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") diff --git a/src/bin/cargo/commands/remove.rs b/src/bin/cargo/commands/remove.rs index 56d60c8b161..62a3e223ddd 100644 --- a/src/bin/cargo/commands/remove.rs +++ b/src/bin/cargo/commands/remove.rs @@ -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")