mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
allow setting no_confirm via envvar (#1921)
This commit is contained in:
parent
e3321fbac5
commit
2917b32788
1 changed files with 6 additions and 1 deletions
|
@ -221,7 +221,12 @@ pub struct Args {
|
|||
pub(crate) dry_run: bool,
|
||||
|
||||
/// Disable interactive mode / confirmation prompts.
|
||||
#[clap(help_heading = "Options", short = 'y', long)]
|
||||
#[clap(
|
||||
help_heading = "Options",
|
||||
short = 'y',
|
||||
long,
|
||||
env = "BINSTALL_NO_CONFIRM"
|
||||
)]
|
||||
pub(crate) no_confirm: bool,
|
||||
|
||||
/// Do not cleanup temporary files.
|
||||
|
|
Loading…
Add table
Reference in a new issue