« blib/lib/Devel/Trepan/CmdProcessor/Command/Info_Subcmd/Variables.pm
↑ Summary
blib/lib/Devel/Trepan/CmdProcessor/Command/Set_Subcmd/Auto.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::Set::Abbrev; | ||
| 7 | |||
| 8 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Core; | ||
| 9 | |||
| 10 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::SetBoolSubcmd); | ||
| 11 | # Values inherited from parent | ||
| 12 | use vars @Devel::Trepan::CmdProcessor::Command::Subcmd::SUBCMD_VARS; | ||
| 13 | |||
| 14 | our $SHORT_HELP = 'Set to allow unique abbreviations of commands'; | ||
| 15 | our $HELP = <<'HELP'; | ||
| 16 | =pod | ||
| 17 | |||
| 18 | B<set abbrev> [B<on>|B<off>] | ||
| 19 | |||
| 20 | Set to allow unique abbreviations of commands. If "on" or "off" is not | ||
| 21 | given, "on" is assumed. | ||
| 22 | |||
| 23 | =head2 See also: | ||
| 24 | |||
| 25 | L<C<show abbrev>|Devel::Trepan::CmdProcessor::Command::Show::Abbrev> | ||
| 26 | |||
| 27 | =cut | ||
| 28 | HELP | ||
| 29 | our $MIN_ABBREV = length('ab'); | ||
| 30 | |||
| 31 | unless(caller) { | ||
| 32 | # Demo it. | ||
| 33 | require Devel::Trepan::CmdProcessor::Mock; | ||
| 34 | my ($proc, $cmd) = | ||
| 35 | Devel::Trepan::CmdProcessor::Mock::subcmd_setup(); | ||
| 36 | Devel::Trepan::CmdProcessor::Mock::subcmd_demo_bool($proc, $cmd); | ||
| 37 | } | ||
| 38 | |||
| 39 | 1; |