Skip to content

Commit

Permalink
Short option for no-confirm flag (rust-lang#540)
Browse files Browse the repository at this point in the history
Add short name for no-confirm flag

Closes rust-lang#536

The -y short name is a convention, often used by package managers (apt, yum, ...) and it is associated with a request of no interaction (thus often used in scripts, to automate workflows)
  • Loading branch information
alecandido committed Nov 17, 2022
1 parent 69ed65d commit bb1f51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/src/args.rs
Expand Up @@ -157,7 +157,7 @@ pub struct Args {
pub dry_run: bool,

/// Disable interactive mode / confirmation prompts.
#[clap(help_heading = "Options", long)]
#[clap(help_heading = "Options", short = 'y', long)]
pub no_confirm: bool,

/// Do not cleanup temporary files.
Expand Down

0 comments on commit bb1f51a

Please sign in to comment.