Skip to content

Commit

Permalink
Add env for --disable-strategies (#1838)
Browse files Browse the repository at this point in the history
Fixed #1833
  • Loading branch information
NobodyXu authored Jul 26, 2024
1 parent 6809601 commit e017be2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bin/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e017be2

Please sign in to comment.