Sha256: d411e7d47cdffc1dfde25aa7a68c33a047658eee97944c59883005eaffdd056f

Contents?: true

Size: 777 Bytes

Versions: 3

Compression:

Stored size: 777 Bytes

Contents

# -*- coding: utf-8 -*-
# Copyright (C) 2010 Rocky Bernstein <rockyb@rubyforge.net>
require_relative '../base/subcmd'

class Trepan::Subcommand::ShowDifferent < Trepan::ShowBoolSubcommand
  unless defined?(HELP)
    HELP = "Show status of 'set different'"
    MIN_ABBREV   = 'dif'.size
  end

  def run(args)
    if 'nostack' == @proc.settings[:different]
      msg("different is nostack.")
    else
      super
    end
  end


end

if __FILE__ == $0
  # Demo it.
  require_relative '../../mock'

  # FIXME: DRY the below code
  dbgr, cmd = MockDebugger::setup('exit')
  subcommand = Trepan::Subcommand::ShowDifferent.new(cmd)
  testcmdMgr = Trepan::Subcmd.new(subcommand)

  subcommand.run_show_bool
  name = File.basename(__FILE__, '.rb')
  subcommand.summary_help(name)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trepanning-0.0.9 processor/command/show_subcmd/different.rb
trepanning-0.0.8 processor/command/show_subcmd/different.rb
trepanning-0.0.6 processor/command/show_subcmd/different.rb