diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 3f28207ea3..6237103f9d 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -2,6 +2,8 @@ module Homebrew def style target = if ARGV.named.empty? [HOMEBREW_LIBRARY] + elsif ARGV.named.any? { |file| File.exist? file } + ARGV.named else ARGV.formulae.map(&:path) end