add changelog, $VERSION
[gitmo/MooseX-Runnable.git] / lib / MooseX / Runnable.pm
index 7080702..f4a39b6 100644 (file)
@@ -1,6 +1,8 @@
 package MooseX::Runnable;
 use Moose::Role;
 
+our $VERSION = '0.00_01';
+
 requires 'run';
 
 1;
@@ -23,7 +25,7 @@ Create a class, tag it runnable, and provide a C<run> method:
     sub run {
        my $name = shift;
        say "Hello, $name.";
-       return 0;
+       return 0; # success
     }
 
 Then you can run this class as an application with the included
@@ -60,12 +62,15 @@ run it, using C<MooseX::Runnable::Run>.
 
 The syntax is:
 
-  mx-run <args for mx-run> Class::Name <args for Class::Name>
+  mx-run <args for mx-run> -- Class::Name <args for Class::Name>
 
 for example:
 
-  mx-run -Ilib App::HelloWorld --args --go --here
+  mx-run -Ilib -- App::HelloWorld --args --go --here
+
+or:
 
+  mx-run -Ilib +Persistent --port 8080 -Persistent -- App::HelloWorld --args --go --here
 =head2 C<MooseX::Runnable::Run>
 
 If you don't want to invoke your app with C<mx-run>, you can write a