aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-05-21 17:52:18 +0100
committerMax Howell2009-05-21 17:52:18 +0100
commit9554f771cc777f6c4133fffea70463798cc890da (patch)
treeb7596cecebf4cae63d62696862893fdae57779ac
parent0b0fa48c313d77b6e4a1d7b472a998b75765437f (diff)
downloadbrew-9554f771cc777f6c4133fffea70463798cc890da.tar.bz2
Append all arguments to brew install option
So forumla scripts get ARGV[2..] as their arguments when brew install x is invoked
-rwxr-xr-xCellar/homebrew/brew6
1 files changed, 4 insertions, 2 deletions
diff --git a/Cellar/homebrew/brew b/Cellar/homebrew/brew
index 8aa48211f..68efa9a48 100755
--- a/Cellar/homebrew/brew
+++ b/Cellar/homebrew/brew
@@ -7,9 +7,11 @@ $root = Pathname.new(__FILE__).realpath.dirname.parent.parent
case ARGV[0]
when 'brew', 'install' then
- file="#{$root}/Formula/#{ARGV[1]}"
+ abort "You must specify a Formula" unless ARGV[1]
+ ARGV.shift
+ file="#{$root}/Formula/#{ARGV.shift}"
file+='.rb' unless File.exist? file
- system "ruby #{file}"
+ system "ruby #{file} #{ARGV.join ' '}"
when 'ln' then
abort "#{ARGV[1]} is not a directory" unless File.directory? ARGV[1]