diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index ed8e7bf152..f3a97fdb4c 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -14,9 +14,9 @@ module Homebrew problem_count = 0 strict = ARGV.include? "--strict" - if strict && ARGV.formulae.any? && MacOS.version >= :mavericks + if strict && ARGV.resolved_formulae.any? && MacOS.version >= :mavericks require "cmd/style" - ohai "brew style #{ARGV.formulae.join " "}" + ohai "brew style #{ARGV.resolved_formulae.join " "}" style end @@ -48,7 +48,7 @@ module Homebrew ff = if ARGV.named.empty? Formula else - ARGV.formulae + ARGV.resolved_formulae end output_header = !strict