mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix args::parse
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
a9b11630a0
commit
3a560ccd48
1 changed files with 3 additions and 3 deletions
|
@ -561,7 +561,7 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
|
|||
}
|
||||
}
|
||||
|
||||
let has_strategy_override = !opts.overrides.is_empty();
|
||||
let has_strategies_override = !opts.strategies.is_empty();
|
||||
|
||||
// Default strategies if empty
|
||||
if opts.strategies.is_empty() {
|
||||
|
@ -619,8 +619,8 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
|
|||
pkg_url: opts.pkg_url,
|
||||
pkg_fmt: opts.pkg_fmt,
|
||||
bin_dir: opts.bin_dir,
|
||||
disabled_strategies: (!opts.disable_strategies.is_empty() || has_strategy_ovrrride).then(|| {
|
||||
args.disable_strategies
|
||||
disabled_strategies: (!opts.disable_strategies.is_empty() || has_strategies_ovrrride).then(|| {
|
||||
opts.disable_strategies
|
||||
.into_iter()
|
||||
.map(|strategy| strategy.0)
|
||||
.collect::<Vec<_>>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue