From e017be224788d698b43c7c448a3a6b80dbe3fd21 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:46:04 +1000 Subject: [PATCH] Add env for --disable-strategies (#1838) Fixed #1833 --- crates/bin/src/args.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index 187cd9ab..8fbe09e5 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -167,7 +167,12 @@ pub struct Args { /// Disable the strategies specified. /// If a strategy is specified in `--strategies` and `--disable-strategies`, /// then it will be removed. - #[clap(help_heading = "Overrides", long, value_delimiter(','))] + #[clap( + help_heading = "Overrides", + long, + value_delimiter(','), + env = "BINSTALL_DISABLE_STRATEGIES" + )] pub(crate) disable_strategies: Vec, /// If `--github-token` or environment variable `GITHUB_TOKEN`/`GH_TOKEN`