allow setting no_confirm via envvar

This commit is contained in:
John Vandenberg 2024-09-22 14:00:14 +08:00
parent e3321fbac5
commit 87371279d3

View file

@ -221,7 +221,12 @@ pub struct Args {
pub(crate) dry_run: bool, pub(crate) dry_run: bool,
/// Disable interactive mode / confirmation prompts. /// 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, pub(crate) no_confirm: bool,
/// Do not cleanup temporary files. /// Do not cleanup temporary files.