Add env for --disable-strategies (#1838)

Fixed #1833
This commit is contained in:
Jiahao XU 2024-07-26 16:46:04 +10:00 committed by GitHub
parent 6809601273
commit e017be2247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<StrategyWrapped>,
/// If `--github-token` or environment variable `GITHUB_TOKEN`/`GH_TOKEN`