Merge pull request #14295 from apainintheneck/comment-out-path-args-deprecation

Comment out path args deprecation
This commit is contained in:
Kevin 2022-12-27 19:31:27 -08:00 committed by GitHub
commit bbc475f922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,10 +140,11 @@ module Homebrew
no_named_args = true no_named_args = true
[Formula.all, Cask::Cask.all] [Formula.all, Cask::Cask.all]
else else
if args.named.any? { |named_arg| named_arg.end_with?(".rb") } # TODO: Add deprecation
odeprecated "brew audit [path ...]", # if args.named.any? { |named_arg| named_arg.end_with?(".rb") }
"brew audit [name ...]" # odeprecated "brew audit [path ...]",
end # "brew audit [name ...]"
# end
args.named.to_formulae_and_casks args.named.to_formulae_and_casks
.partition { |formula_or_cask| formula_or_cask.is_a?(Formula) } .partition { |formula_or_cask| formula_or_cask.is_a?(Formula) }