1 package MooseX::Runnable;
8 sub run_as_application {
12 if($class->does('MooseX::Getopt')){
13 my $self = $class->new_with_options(@args);
14 local $RUNNING_APP = $self;
15 exit $self->run( $self->extra_argv );
18 local $RUNNING_APP = $class->new(@args);
19 exit $RUNNING_APP->run;