restart regex has a short option
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Server.pm
index bd23bd5..5f3d508 100644 (file)
@@ -82,8 +82,22 @@ has restart => (
     required => 0 
 );
 
-has restart_delay   => ( isa => 'Int',    is => 'ro', required => 0 );
-has restart_regex   => ( isa => 'Str',    is => 'ro', required => 0 );
+has restart_delay => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'rdel',
+    isa => 'Int',    
+    is => 'ro', 
+    required => 0 
+);
+
+has restart_regex => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'rxp',
+    isa => 'Str',    
+    is => 'ro', 
+    required => 0 
+);
+
 has follow_symlinks => ( isa => 'Bool',   is => 'ro', required => 0 );
 
 my @argv = @ARGV;