[Catalyst-commits] r10842 -
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script
dhoss at dev.catalyst.perl.org
dhoss at dev.catalyst.perl.org
Sat Jul 11 00:31:59 GMT 2009
Author: dhoss
Date: 2009-07-11 00:31:58 +0000 (Sat, 11 Jul 2009)
New Revision: 10842
Modified:
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
Log:
removed default => 0s
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-11 00:19:41 UTC (rev 10841)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm 2009-07-11 00:31:58 UTC (rev 10842)
@@ -20,8 +20,7 @@
cmd_aliases => 'h',
isa => 'Bool',
is => 'ro',
- ,
- default => 0,
+ ,
);
has host => (
@@ -62,7 +61,7 @@
isa => 'Bool',
is => 'ro',
,
- default => 0
+
);
has background => (
@@ -113,12 +112,19 @@
);
+sub usage {
+ my ($self) = shift;
+
+ return pod2usage();
+
+}
+
my @argv = @ARGV;
sub run {
my $self = shift;
- pod2usage() if $self->help;
+ $self->usage if $self->help;
my $app = $self->app;
Class::MOP::load_class($app);
$app->run(
More information about the Catalyst-commits
mailing list