From: Devin Austin Date: Sat, 4 Jul 2009 00:57:11 +0000 (+0000) Subject: restart regex has a short option X-Git-Tag: 5.80014_02~112 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=ee7aabd6613f44e30e6bbc335569711f17607a73 restart regex has a short option --- diff --git a/lib/Catalyst/Script/Server.pm b/lib/Catalyst/Script/Server.pm index e64ecce..5f3d508 100644 --- a/lib/Catalyst/Script/Server.pm +++ b/lib/Catalyst/Script/Server.pm @@ -90,7 +90,14 @@ has restart_delay => ( required => 0 ); -has restart_regex => ( isa => 'Str', 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;