aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 694850df2..3c49480e2 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -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