[Catalyst-commits] r10792 - Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sat Jul 4 00:54:30 GMT 2009


Author: dhoss
Date: 2009-07-04 00:54:29 +0000 (Sat, 04 Jul 2009)
New Revision: 10792

Modified:
   Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
Log:
restart has short option


Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm	2009-07-04 00:53:16 UTC (rev 10791)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm	2009-07-04 00:54:29 UTC (rev 10792)
@@ -73,8 +73,15 @@
     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 );




More information about the Catalyst-commits mailing list