Merge pull request #14285 from apainintheneck/deprecate-passing-paths-to-audit

Deprecate path args to audit cmd
This commit is contained in:
Kevin 2022-12-27 10:40:50 -08:00 committed by GitHub
commit 73d4c1b8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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