From: Devin Austin Date: Sat, 4 Jul 2009 00:54:29 +0000 (+0000) Subject: restart has short option X-Git-Tag: 5.80014_02~114 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8f01ed5fbbffb8b58e27810682087fa0e28c35c4 restart has short option --- diff --git a/lib/Catalyst/Script/Server.pm b/lib/Catalyst/Script/Server.pm index 482f9ab..bd23bd5 100644 --- a/lib/Catalyst/Script/Server.pm +++ b/lib/Catalyst/Script/Server.pm @@ -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 );