« blib/lib/Devel/Trepan/CmdProcessor/Command/Set_Subcmd/Trace.pm
↑ Summary
blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Args.pm »
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # Copyright (C) 2011, 2012, 2014 Rocky Bernstein <rocky@cpan.org> | ||
| 3 | use warnings; no warnings 'redefine'; no warnings 'once'; | ||
| 4 | use rlib '../../../../..'; | ||
| 5 | |||
| 6 | package Devel::Trepan::CmdProcessor::Command::Show::Abbrev; | ||
| 7 | |||
| 8 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Core; | ||
| 9 | |||
| 10 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubcmd); | ||
| 11 | # Values inherited from parent | ||
| 12 | use vars @Devel::Trepan::CmdProcessor::Command::Subcmd::SUBCMD_VARS; | ||
| 13 | |||
| 14 | =pod | ||
| 15 | |||
| 16 | =head2 Synopsis: | ||
| 17 | |||
| 18 | =cut | ||
| 19 | our $HELP = <<'EOH'; | ||
| 20 | =pod | ||
| 21 | |||
| 22 | B<show abbrev> | ||
| 23 | |||
| 24 | Show whether we allow abbreviated debugger command names | ||
| 25 | |||
| 26 | =head2 See also: | ||
| 27 | |||
| 28 | L<C<set abbrev>|Devel::Trepan::CmdProcessor::Command::Set::Abbrev> | ||
| 29 | =cut | ||
| 30 | EOH | ||
| 31 | |||
| 32 | our $SHORT_HELP = "Show whether we allow abbreviated debugger command names"; | ||
| 33 | our $MIN_ABBREV = length('ab'); | ||
| 34 | |||
| 35 | unless (caller) { | ||
| 36 | # Demo it. | ||
| 37 | # require_relative '../../mock' | ||
| 38 | |||
| 39 | # # FIXME: DRY the below code | ||
| 40 | # my ($dbgr, $cmd) = MockDebugger::setup('show'); | ||
| 41 | # $subcommand = __PACKAGE__->new($cmd); | ||
| 42 | # $testcmdMgr = Trepan::Subcmd->new($subcommand); | ||
| 43 | |||
| 44 | # $subcommand->run_show_bool(); | ||
| 45 | # $subcommand->summary_help($NAME); | ||
| 46 | } | ||
| 47 | |||
| 48 | 1; |