ARGV: add .json
Used by brew info; may be used by other commands in the future.
This commit is contained in:
parent
3473bbc010
commit
ee4c696380
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user