X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Fmx-run;h=8483eb5030fc3ddc7f00084493373ad58b225a09;hb=040d22bb436c86e182fc04b62862e29f74c86c5c;hp=6e9ddf3334ea67606f05208772a45a85cb245873;hpb=2f7a7ff66e024179f4e0eb1a37376030dac352c2;p=gitmo%2FMooseX-Runnable.git diff --git a/bin/mx-run b/bin/mx-run index 6e9ddf3..8483eb5 100644 --- a/bin/mx-run +++ b/bin/mx-run @@ -4,7 +4,7 @@ use strict; use warnings; use MooseX::Runnable::Util::ArgParser; -use MooseX::Runnable::Run; # incidentally, we don't actually use this... +use MooseX::Runnable::Invocation::MxRun; exit run(); @@ -25,9 +25,10 @@ sub run { my $app = $args->class_name; local $0 = "mx-run ... $app"; - return MooseX::Runnable::Invocation->new( - class => $app, - plugins => $args->plugins, + return MooseX::Runnable::Invocation::MxRun->new( + class => $app, + plugins => $args->plugins, + parsed_args => $args, )->run($args->app_args); }