[Catalyst-commits] r10902 -
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script
dhoss at dev.catalyst.perl.org
dhoss at dev.catalyst.perl.org
Fri Jul 17 00:52:57 GMT 2009
Author: dhoss
Date: 2009-07-17 00:52:56 +0000 (Fri, 17 Jul 2009)
New Revision: 10902
Modified:
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm
Log:
untarded and added documentation
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm 2009-07-16 22:53:20 UTC (rev 10901)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm 2009-07-17 00:52:56 UTC (rev 10902)
@@ -10,9 +10,23 @@
with 'MooseX::Getopt';
-has app => ( isa => 'Str', is => 'ro', required => 1 );
-has help => ( isa => 'Bool', is => 'ro', required => 0, default => sub { 0 } );
+has _app => (
+ reader => 'app',
+ init_arg => 'app',
+ traits => [qw(NoGetopt)],
+ isa => 'Str',
+ is => 'ro',
+);
+has help => (
+ traits => [qw(Getopt)],
+ cmd_aliases => 'h',
+ isa => 'Bool',
+ is => 'ro',
+ documentation => qq{ display this help and exits },
+);
+
+
sub run {
my $self = shift;
More information about the Catalyst-commits
mailing list