Sha256: 0c40e01a4002d445d12f189de3c0f56026cd1a3c25a0226d40b21112f2c6169f
Contents?: true
Size: 611 Bytes
Versions: 6
Compression:
Stored size: 611 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require_relative '../base/subcmd' require_relative '../../../app/options' class Trepan::Subcommand::ShowVersion < Trepan::Subcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = "Show debugger name and version" end def run(args) msg Trepan.show_version end end if __FILE__ == $0 # Demo it. require_relative '../../mock' dbgr, parent_cmd = MockDebugger::setup('show') cmd = Trepan::SubSubcommand::ShowVersion.new(parent_cmd) cmd.run(cmd.prefix) end
Version data entries
6 entries across 6 versions & 1 rubygems