Sha256: 7d2e429fe08b61f3506ce702f95e361d412fef44939da54a7e1b51390b32cd33
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative 'base/submgr' class Trepan::Command::ShowCommand < Trepan::SubcommandMgr unless defined?(HELP) HELP = 'Generic command for showing things about the debugger. You can give unique prefix of the name of a subcommand to get information about just that subcommand. Type "show" for a list of "show" subcommands and what they do. Type "help show *" for just a list of "show" subcommands.' CATEGORY = 'status' NAME = File.basename(__FILE__, '.rb') NEED_STACK = false SHORT_HELP = 'Show parts of the debugger environment' end def run(args) if args.size > 1 first = args[1].downcase alen = 'auto'.size args[1..1] = ['auto', first[alen..-1]] if first.start_with?('auto') && first.size > alen end super end end if __FILE__ == $0 require_relative '../mock' dbgr, cmd = MockDebugger::setup cmd.run([cmd.name]) end
Version data entries
3 entries across 3 versions & 1 rubygems