restart has short option
Devin Austin [Sat, 4 Jul 2009 00:54:29 +0000 (00:54 +0000)]
lib/Catalyst/Script/Server.pm

index 482f9ab..bd23bd5 100644 (file)
@@ -73,8 +73,15 @@ has background => (
     required => 0 
 );
 
-has app             => ( isa => 'Str',    is => 'ro', required => 1 ); # THIS IS FUCKING RETARDED HALP PLZ
-has restart         => ( isa => 'Bool',   is => 'ro', required => 0 );
+has app => ( isa => 'Str',    is => 'ro', required => 1 ); # THIS IS FUCKING RETARDED HALP PLZ
+has restart => (
+    traits => [qw(Getopt)],
+    cmd_aliases => 'r', 
+    isa => 'Bool',   
+    is => 'ro', 
+    required => 0 
+);
+
 has restart_delay   => ( isa => 'Int',    is => 'ro', required => 0 );
 has restart_regex   => ( isa => 'Str',    is => 'ro', required => 0 );
 has follow_symlinks => ( isa => 'Bool',   is => 'ro', required => 0 );