aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-05 23:00:59 -0500
committerJack Nagel2014-10-05 23:01:02 -0500
commit764d8b676d7fe846acffd058c3011c174609204a (patch)
tree50c4a518baca237330a80b82c607ef327aeedffe /Library
parent21c329e0eb25100df64dc4bdab41ba41d64309f2 (diff)
downloadbrew-764d8b676d7fe846acffd058c3011c174609204a.tar.bz2
Simplify IRB monkeypatch
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/debrew/irb.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Homebrew/debrew/irb.rb b/Library/Homebrew/debrew/irb.rb
index 0e6790af9..c3a16c046 100644
--- a/Library/Homebrew/debrew/irb.rb
+++ b/Library/Homebrew/debrew/irb.rb
@@ -3,15 +3,12 @@ require 'irb'
module IRB
@setup_done = false
+ def IRB.parse_opts
+ end
+
def IRB.start_within(binding)
unless @setup_done
- # make IRB ignore our command line arguments
- begin
- saved_args = ARGV.shift(ARGV.size)
- IRB.setup(nil)
- ensure
- ARGV.replace(saved_args)
- end
+ IRB.setup(nil)
@setup_done = true
end