diff options
| author | Adam Vandenberg | 2010-07-13 07:31:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-07 18:08:51 -0700 |
| commit | f990f083e8758019b7513605d54af6ae129cc913 (patch) | |
| tree | 1cd600be3e791efa849b117c59ed4270d24ba21c /bin | |
| parent | 6612a049174af69d0a4103e4db84ea385f447bbe (diff) | |
| download | brew-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-x | bin/brew | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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| |
