From: Devin Austin Date: Fri, 17 Jul 2009 00:52:56 +0000 (+0000) Subject: untarded and added documentation X-Git-Tag: 5.80014_02~88 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8a289b5f348fedc6761768e8c91b34b5ca05afeb untarded and added documentation --- diff --git a/lib/Catalyst/Script/CGI.pm b/lib/Catalyst/Script/CGI.pm index 1014854..609df55 100644 --- a/lib/Catalyst/Script/CGI.pm +++ b/lib/Catalyst/Script/CGI.pm @@ -10,8 +10,22 @@ use namespace::autoclean -except => [ qw(meta) ]; 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;