class Rubinius::Debugger::Command::Help
Commands =====¶ ↑
These classes are in the order they should appear in the help output. As such, they're grouped by similar action.
Public Instance Methods
run(args)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 79 def run(args) if args and !args.empty? klass = Command.commands.find { |k| k.match?(args.strip) } if klass des = klass.descriptor puts "Help for #{des.name}:" puts " Accessed using: #{des.patterns.join(', ')}" puts "\n#{des.help}." puts "\n#{des.ext_help}" if des.ext_help else puts "Unknown command: #{args}" end else Command.commands.each do |klass| des = klass.descriptor puts "%20s: #{des.help}" % des.patterns.join(', ') end end end