From: Devin Austin Date: Sat, 4 Jul 2009 00:49:39 +0000 (+0000) Subject: doez haz pidfile short opt X-Git-Tag: 5.80014_02~118 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=41b5501944db45700f920562992955e135d06f51;p=catagits%2FCatalyst-Runtime.git doez haz pidfile short opt --- diff --git a/lib/Catalyst/Script/Server.pm b/lib/Catalyst/Script/Server.pm index b447307..716bd4e 100644 --- a/lib/Catalyst/Script/Server.pm +++ b/lib/Catalyst/Script/Server.pm @@ -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)], @@ -43,7 +48,14 @@ has listen => ( default => "3000" ); -has pidfile => ( isa => 'Str', is => 'ro', required => 0 ); +has pidfile => ( + traits => [qw(Getopt)], + cmd_aliases => 'pf', + isa => 'Str', + is => 'ro', + required => 0 +); + has keepalive => ( isa => 'Bool', is => 'ro', required => 0, default => 0 ); has background => ( isa => 'Bool', is => 'ro', required => 0 ); has app => ( isa => 'Str', is => 'ro', required => 1 );