App-Cmd
view release on metacpan or search on metacpan
t/lib/Test/MySimple.pm view on Meta::CPAN
package Test::MySimple;
use strict;
use warnings;
use parent 'App::Cmd::Simple';
our $VERSION = '0.123';
use Data::Dumper;
sub execute {
my ($self, $opt, $args) = @_;
local $Data::Dumper::Terse = 1;
print Dumper([ $opt, $args ]);
}
sub validate_args {
my ($self, $opt, $args) = @_;
$self->usage_error("not enough args") unless @$args > 0;
}
sub opt_spec {
return [ "fooble|f", "check all foobs for foobling" ],
}
1;
( run in 1.968 second using v1.01-cache-2.11-cpan-39bf76dae61 )