diff options
| author | Max Howell | 2009-05-21 17:52:18 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-21 17:52:18 +0100 |
| commit | 9554f771cc777f6c4133fffea70463798cc890da (patch) | |
| tree | b7596cecebf4cae63d62696862893fdae57779ac | |
| parent | 0b0fa48c313d77b6e4a1d7b472a998b75765437f (diff) | |
| download | brew-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-x | Cellar/homebrew/brew | 6 |
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] |
