diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-07 22:16:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-07 22:16:47 +0000 |
commit | 0f58f9dbe7bf81595b78bcee9cab49a4a546ba80 (patch) | |
tree | f25a04d3b311b1eeb8dc9abb0cf2a1e76ca3daa1 /lib/irb/cmd/help.rb | |
parent | f1973fff8ad2518892adf0acb0ae7aea8b92a40c (diff) | |
download | ruby-0f58f9dbe7bf81595b78bcee9cab49a4a546ba80.tar.gz |
* lib/irb/cmd/help.rb (IRB::ExtendCommand::Help#execute): use RI
interactive mode if no argument. [ruby-dev:39839]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/cmd/help.rb')
-rw-r--r-- | lib/irb/cmd/help.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index d2d6ef4083..b946ec01fc 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -9,7 +9,6 @@ # require 'rdoc/ri/driver' -require 'rdoc/ri/util' require "irb/cmd/nop.rb" @@ -21,6 +20,10 @@ module IRB rescue SystemExit else def execute(*names) + if names.empty? + Ri.interactive + return + end names.each do |name| begin Ri.get_info_for(name.to_s) |