Test::Smoke::App::AppOption - Object that represents an Application Option.
use Test::Smoke::App::AppOption; my $o = Test::Smoke::App::AppOption->new( ); printf "%s\n", $o->gol_option; print $o->show_helptext;
Named:
An instance.
croak()s when:
Checks if a value is in a set of allowed values.
Positional.
$allow can be:
$allow
ArrayRef => a list of allowed() items
Regex => a regex to test $value against.
$value
CodeRef => a coderef that is executed with $value
other_value => $value eq $other_value (checks for definedness)
(perl) True of False.
Getopt::Long compatible option string.
sprintf "%-30s - %s", $option_with_allowd, $self->helptext
(c) 2002-2013, Abe Timmerman <abeltje@cpan.org> All rights reserved.
With contributions from Jarkko Hietaniemi, Merijn Brand, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://www.perl.com/perl/misc/Artistic.html
http://www.gnu.org/copyleft/gpl.html
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Test::Smoke, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Smoke
CPAN shell
perl -MCPAN -e shell install Test::Smoke
For more information on module installation, please visit the detailed CPAN module installation guide.