[Catalyst-commits] r10906 -
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 01:04:12 GMT 2009
Author: dhoss
Date: 2009-07-17 01:04:12 +0000 (Fri, 17 Jul 2009)
New Revision: 10906
Modified:
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm
Log:
cleaned up
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm 2009-07-17 01:01:25 UTC (rev 10905)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm 2009-07-17 01:04:12 UTC (rev 10906)
@@ -9,15 +9,21 @@
with 'MooseX::Getopt';
-has help => ( isa => 'Bool', is => 'ro', required => 0, default => sub { 0 } );
+has help => ( isa => 'Bool', is => 'ro', required => 0 );
has listen => ( isa => 'Int', is => 'ro', required => 1 );
has pidfile => ( isa => 'Str', is => 'ro', required => 0 );
-has daemon => ( isa => 'Bool', is => 'ro', required => 0, default => sub { 0 } );
+has daemon => ( isa => 'Bool', is => 'ro', required => 0 );
has manager => ( isa => 'Str', is => 'ro', required => 0 );
has keep_stderr => ( isa => 'Bool', is => 'ro', required => 0 );
has nproc => ( isa => 'Int', is => 'ro', required => 0 );
-has detach => ( isa => 'Bool', is => 'ro', required => 0, default => sub { 0 } );
-has app => ( isa => 'Str', is => 'ro', required => 1 );
+has detach => ( isa => 'Bool', is => 'ro', required => 0 );
+has _app => (
+ reader => 'app',
+ init_arg => 'app',
+ traits => [qw(NoGetopt)],
+ isa => 'Str',
+ is => 'ro',
+);
sub run {
my $self = shift;
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm 2009-07-17 01:01:25 UTC (rev 10905)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm 2009-07-17 01:04:12 UTC (rev 10906)
@@ -4,12 +4,25 @@
use FindBin;
use lib "$FindBin::Bin/../lib";
with 'MooseX::Getopt';
-use namespace::autoclean -except => [ qw(meta) ];
+use namespace::autoclean;
-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