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
commit9218934ee9cbc65c4dc65f925281780407ecd483 (patch)
tree8bdf240f7bd5aef2b7de5477271e30ad796e4b91 /Library
parent257d6fb7531f477b58a99ad68fffd9fd02049b8d (diff)
downloadhomebrew-9218934ee9cbc65c4dc65f925281780407ecd483.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