style: allow passing arbitrary file paths
This commit is contained in:
parent
e9180b39f5
commit
2c3084a0a2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user