# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein require_relative '../base/subsubcmd' require_relative '../base/subsubmgr' class Trepan::SubSubcommand::ShowMax < Trepan::SubSubcommandMgr unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = 'Show "maximum length" settings' MIN_ABBREV = NAME.size end def run(args) super end end if __FILE__ == $0 require_relative '../../mock' dbgr = MockDebugger::MockDebugger.new cmds = dbgr.core.processor.commands show_cmd = cmds['show'] command = Trepan::SubSubcommand::ShowMax.new(dbgr.core.processor, show_cmd) name = File.basename(__FILE__, '.rb') cmd_args = ['show', name] show_cmd.instance_variable_set('@last_args', cmd_args) # require_relative '../../../lib/trepanning' # Trepan.debug command.run(cmd_args) end