diff options
author | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
---|---|---|
committer | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
commit | 51cec00953ff8d7baa483d3846aa1dbdb89101aa (patch) | |
tree | 2900ea0ba7c09379990e9da2edda5d6ef8fa075c /lib/irb/init.rb | |
parent | 683834eb72cfa77f4eac1c705327b522302b1721 (diff) |
Revert "IRB is improved with Reline and RDoc"
This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 344b243f12..2066d8cb64 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -112,6 +112,8 @@ module IRB # :nodoc: @CONF[:LC_MESSAGES] = Locale.new @CONF[:AT_EXIT] = [] + + @CONF[:DEBUG_LEVEL] = 0 end def IRB.init_error @@ -189,6 +191,8 @@ module IRB # :nodoc: @CONF[:CONTEXT_MODE] = ($1 || argv.shift).to_i when "--single-irb" @CONF[:SINGLE_IRB] = true + when /^--irb_debug(?:=(.+))?/ + @CONF[:DEBUG_LEVEL] = ($1 || argv.shift).to_i when "-v", "--version" print IRB.version, "\n" exit 0 |