Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Let 'help' show help rather than previous sucky 'mc?' but retain

backward compat
  • Loading branch information...
commit 641f14ba11b832f5ae706999ce469fda97292351 1 parent 215ebdd
@ripienaar authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 mc-irb/mc-irb
View
7 mc-irb/mc-irb
@@ -45,6 +45,9 @@ def consolize &block
IRB.conf[:MAIN_CONTEXT] = irb.context
irb.context.evaluate("require 'irb/completion'", 0)
+ install_alias_method :help, :mc_irb_help, IRB::ExtendCommandBundle::OVERRIDE_ALL
+ install_alias_method :mc?, :mc_irb_help, IRB::ExtendCommandBundle::OVERRIDE_ALL
+
begin
require 'bond'
Bond.start
@@ -193,7 +196,7 @@ def discover
@agent.discover
end
-def mc?
+def mc_irb_help
puts <<EOF
Available Commands:
@@ -247,6 +250,4 @@ consolize do
puts
newagent(ARGV[0])
- puts
- puts "Use mc? to get help on using this shell"
end
Please sign in to comment.
Something went wrong with that request. Please try again.