From 2c3084a0a26892d68b6af19f8996c6ce58a55f02 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 6 Aug 2015 15:39:08 +0800 Subject: [PATCH] style: allow passing arbitrary file paths --- Library/Homebrew/cmd/style.rb | 2 ++ 1 file changed, 2 insertions(+) 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