ARGV: add .json

Used by brew info; may be used by other commands in the future.
This commit is contained in:
Misty De Meo 2012-08-15 21:53:16 -05:00
parent 3473bbc010
commit ee4c696380

View File

@ -101,6 +101,11 @@ module HomebrewArgvExtension
include? '--ignore-dependencies'
end
def json
json_rev = find {|o| o =~ /--json=.+/}
json_rev.split("=").last if json_rev
end
def build_head?
include? '--HEAD'
end