Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Let 'help' show help rather than previous sucky 'mc?' but retain
Browse files Browse the repository at this point in the history
backward compat
  • Loading branch information
ripienaar committed Mar 5, 2011
1 parent 215ebdd commit 641f14b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mc-irb/mc-irb
Expand Up @@ -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
Expand Down Expand Up @@ -193,7 +196,7 @@ def discover
@agent.discover
end

def mc?
def mc_irb_help
puts <<EOF
Available Commands:
Expand Down Expand Up @@ -247,6 +250,4 @@ consolize do

puts
newagent(ARGV[0])
puts
puts "Use mc? to get help on using this shell"
end

0 comments on commit 641f14b

Please sign in to comment.