listen now has a short option
Devin Austin [Sat, 4 Jul 2009 00:45:19 +0000 (00:45 +0000)]
lib/Catalyst/Script/Server.pm

index 9fcc676..b447307 100644 (file)
@@ -34,7 +34,15 @@ has fork => (
     required => 0 
 );
 
-has listen          => ( isa => 'Int',    is => 'ro', required => 0, default => "3000" );
+has listen => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'l',
+    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 background      => ( isa => 'Bool',   is => 'ro', required => 0 );