Merge pull request #14046 from Bo98/unbottled-dependents

dev-cmd/unbottled: fix --dependents erroring
This commit is contained in:
Bo Anderson 2022-10-25 23:04:48 +01:00 committed by GitHub
commit c7f1a45ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ module Homebrew
if args.named.present?
formulae = all_formulae = args.named.to_formulae
elsif args.dependents?
if !args.all? && !Homebrew::EnvConfig.eval_all?
if !args.eval_all? && !Homebrew::EnvConfig.eval_all?
odeprecated "brew unbottled --dependents", "brew unbottled --all --dependents or HOMEBREW_EVAL_ALL"
end
formulae = all_formulae = Formula.all