fix a bug found via $work_app
[gitmo/MooseX-Runnable.git] / example / MyApp.pm
CommitLineData
32ef7eca 1package MyApp;
2use Moose;
3use 5.010;
4
5with 'MooseX::Runnable', 'MooseX::Getopt';
6
7has 'name' => ( is => 'ro', isa => 'Str', default => 'world', documentation =>
8 'Your name, defaults to "world"' );
9
10sub run {
11 my ($self, $name) = @_;
12 say 'Hello, '. $self->name. '.';
13 return 0;
14}
15
161;
17
18__END__
19
20cd to this dir, and then run "mx-run MyApp --help"