From 719643c943639d58586d908720defe9a978f940c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 5 Aug 2023 11:13:22 -0700 Subject: [PATCH] Disable implicit help subcommand --- src/opts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opts.rs b/src/opts.rs index 37cad07..9371fde 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -6,7 +6,7 @@ use syn_select::Selector; const VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/version")); #[derive(Parser)] -#[command(bin_name = "cargo", version = VERSION, author)] +#[command(bin_name = "cargo", version = VERSION, author, disable_help_subcommand = true)] pub enum Subcommand { /// Show the result of macro expansion. #[command(name = "expand", version = VERSION, author)]