aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/style.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index 3f28207ea..6237103f9 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