Sha256: c88d0e23702e1b964bf8b3c76d7a0662583376030e72e361c0c432ec486a4adb
Contents?: true
Size: 835 Bytes
Versions: 10
Compression:
Stored size: 835 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subcmd' class Trepan::Subcommand::ShowArgs < Trepan::Subcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = 'Show argument list to give program when it is restarted' MIN_ABBREV = 'ar'.size end def run(args) dbgr = @proc.dbgr msg "Restart directory: #{RubyVM::OS_STARTUP_DIR}" msg "Restart args:\n\t#{dbgr.restart_argv.inspect}" end end if __FILE__ == $0 # Demo it. require_relative '../../mock' cmd_ary = Trepan::Subcommand::ShowArgs::PREFIX dbgr, parent_cmd = MockDebugger::setup(cmd_ary[0], false) cmd = Trepan::Subcommand::ShowArgs.new(parent_cmd) cmd.run([]) cmd.summary_help(cmd.name) puts end
Version data entries
10 entries across 10 versions & 1 rubygems