aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-13 07:31:43 -0700
committerAdam Vandenberg2010-08-07 18:08:51 -0700
commitf990f083e8758019b7513605d54af6ae129cc913 (patch)
tree1cd600be3e791efa849b117c59ed4270d24ba21c /bin
parent6612a049174af69d0a4103e4db84ea385f447bbe (diff)
downloadbrew-f990f083e8758019b7513605d54af6ae129cc913.tar.bz2
ARGV - rename method that conflicts with optparse
optparse adds an "options" method to ARGV, and so does Homebrew. Rename this method (and remove optparse blocking script) so that Homebrew plays nicer with external Ruby software. This fixes the issue where "gem install thin" would break "brew server", for instance.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/brew b/bin/brew
index e9016704a..336e3ba1a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -126,7 +126,7 @@ begin
end
elsif ARGV.named.empty?
ENV['CLICOLOR']=nil
- exec 'ls', *ARGV.options<<HOMEBREW_CELLAR if HOMEBREW_CELLAR.exist?
+ exec 'ls', *ARGV.options_only<<HOMEBREW_CELLAR if HOMEBREW_CELLAR.exist?
elsif ARGV.verbose? or not $stdout.tty?
exec "find", *ARGV.kegs+%w[-not -type d -print]
else
@@ -257,7 +257,7 @@ begin
when 'log'
Dir.chdir HOMEBREW_REPOSITORY
- args = ARGV.options
+ args = ARGV.options_only
args.unshift ARGV.formulae.first.path unless ARGV.named.empty?
exec "git", "log", *args
@@ -276,7 +276,7 @@ begin
when 'cat'
Dir.chdir HOMEBREW_REPOSITORY
- exec "cat", ARGV.formulae.first.path, *ARGV.options
+ exec "cat", ARGV.formulae.first.path, *ARGV.options_only
when 'outdated'
outdated_brews.each do |keg, name, version|