Permalink
Browse files

Merge branch 'master' of github.com:rocky/rb-trepanning

  • Loading branch information...
rocky committed Oct 11, 2011
2 parents 5654fa9 + cdf41d2 commit 0d61a5b3deb658c7aebbfc792757de95c79c2aa2
@@ -6,7 +6,13 @@
class Trepan::SubSubcommand::SetAuto < Trepan::SubSubcommandMgr
unless defined?(HELP)
Trepanning::Subcommand.set_name_prefix(__FILE__, self)
HELP = 'Set controls for things with some sort of "automatic" default behavior'
HELP = <<-EOH
Set controls for things with some sort of "automatic" default behavior.
See "#{PREFIX.join(' ')} *" for a list of subcommands or "#{PREFIX.join(' ')} <name>"
for help on a particular trace subcommand.
EOH
SHORT_HELP = 'Set controls for some "automatic" default behaviors'
end
end
@@ -5,8 +5,8 @@
class Trepan::Subcommand::SetDifferent < Trepan::SetBoolSubcommand
unless defined?(HELP)
Trepanning::Subcommand.set_name_prefix(__FILE__, self)
HELP = "
set different [on|off|nostack]
HELP = <<-EOH
#{PREFIX.join(' ')} [on|off|nostack]
Set to make sure 'next' or 'step' moves to a new position.
@@ -29,7 +29,8 @@ class Trepan::Subcommand::SetDifferent < Trepan::SetBoolSubcommand
functions on different lines to also be skipped.
See also 'step', 'next' which have suffixes '+' and '-' which
override this setting."
override this setting.
EOH
IN_LIST = true
MIN_ABBREV = 'dif'.size
@@ -6,14 +6,15 @@
class Trepan::SubSubcommand::SetTrace < Trepan::SubSubcommandMgr
unless defined?(HELP)
Trepanning::Subcommand.set_name_prefix(__FILE__, self)
HELP = "Set tracing of various sorts.
HELP = <<-EOH
Set tracing of various sorts.
The types of tracing include events from the trace buffer, or printing
those events.
See 'help #{PREFIX.join(' ')} *' for a list of subcommands or 'help set trace
<name>' for help on a particular trace subcommand."
See "help #{PREFIX.join(' ')} *" for a list of subcommands or "help #{PREFIX.join(' ')} <name>"
for help on a particular trace subcommand.
EOH
IN_LIST = true
MIN_ABBREV = 'tr'.size
SHORT_HELP = 'Set tracing of various sorts.'
@@ -6,13 +6,14 @@ class Trepan::SubSubcommand::SetTracePrint < Trepan::SetBoolSubSubcommand
unless defined?(HELP)
Trepanning::SubSubcommand.set_name_prefix(__FILE__, self)
HELP = <<-EOH
#{CMD} [on|off|1|0]
#{CMD} [on|off]
Set printing trace events.
Set printing trace events. This is similar to "set -x" tracing in
POSIX shells.
EOH
MIN_ABBREV = 'p'.size
SHORT_HELP = 'Set print trace events'
SHORT_HELP = 'Set print trace events, like "set -x" of POSIX shell'
end
def run(args)
@@ -4,11 +4,11 @@
class Trepan::SubSubcommand::ShowTracePrint < Trepan::ShowBoolSubSubcommand
unless defined?(HELP)
HELP = "Show tracing print status"
HELP = "Show tracing print (set -x) status"
MIN_ABBREV = 'p'.size
NAME = File.basename(__FILE__, '.rb')
PREFIX = %w(show trace buffer)
SHORT_HELP = "Show tracing print status"
PREFIX = %w(show trace print)
SHORT_HELP = "Show tracing print (set -x) status"
end
end

0 comments on commit 0d61a5b

Please sign in to comment.