doez haz keepalive short opt
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Server.pm
index 9fcc676..2795439 100644 (file)
@@ -24,7 +24,12 @@ has help => (
     default => 0,  
 );
 
-has host            => ( isa => 'Str',    is => 'ro', required => 0, default =>  "localhost" );
+has host => ( 
+    isa => 'Str',    
+    is => 'ro', 
+    required => 0, 
+    default =>  "localhost" 
+);
 
 has fork => ( 
     traits => [qw(Getopt)],
@@ -34,11 +39,34 @@ has fork => (
     required => 0 
 );
 
-has listen          => ( isa => 'Int',    is => 'ro', required => 0, default => "3000" );
-has pidfile         => ( isa => 'Str',    is => 'ro', required => 0 );
-has keepalive       => ( isa => 'Bool',   is => 'ro', required => 0, default => 0 );
+has listen => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'l',
+    isa => 'Int',
+    is => 'ro', 
+    required => 0, 
+    default => "3000" 
+);
+
+has pidfile => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'pf',
+    isa => 'Str',    
+    is => 'ro', 
+    required => 0 
+);
+
+has keepalive => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'k',
+    isa => 'Bool',   
+    is => 'ro', 
+    required => 0, 
+    default => 0 
+);
+
 has background      => ( isa => 'Bool',   is => 'ro', required => 0 );
-has app             => ( isa => 'Str',    is => 'ro', required => 1 );
+has app             => ( isa => 'Str',    is => 'ro', required => 1 ); # THIS IS FUCKING RETARDED HALP PLZ
 has restart         => ( isa => 'Bool',   is => 'ro', required => 0 );
 has restart_delay   => ( isa => 'Int',    is => 'ro', required => 0 );
 has restart_regex   => ( isa => 'Str',    is => 'ro', required => 0 );