Skip to content

Commit

Permalink
Disable implicit help subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 5, 2023
1 parent 23be22d commit 719643c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 719643c

Please sign in to comment.