[Catalyst-commits] r11992 - in
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst: . Script
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Mon Nov 23 23:40:57 GMT 2009
Author: t0m
Date: 2009-11-23 23:40:57 +0000 (Mon, 23 Nov 2009)
New Revision: 11992
Modified:
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Create.pm
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm
Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/ScriptRole.pm
Log:
Fix duplicate short options issue
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-11-23 23:06:27 UTC (rev 11991)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/CGI.pm 2009-11-23 23:40:57 UTC (rev 11992)
@@ -5,6 +5,8 @@
with 'Catalyst::ScriptRole';
+has '+help' => (cmd_aliases => 'h');
+
__PACKAGE__->meta->make_immutable;
=head1 NAME
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Create.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Create.pm 2009-11-23 23:06:27 UTC (rev 11991)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Create.pm 2009-11-23 23:40:57 UTC (rev 11992)
@@ -6,6 +6,8 @@
with 'Catalyst::ScriptRole';
+has '+help' => (cmd_aliases => 'h');
+
has force => (
traits => [qw(Getopt)],
cmd_aliases => 'nonew',
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-11-23 23:06:27 UTC (rev 11991)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/FastCGI.pm 2009-11-23 23:40:57 UTC (rev 11992)
@@ -7,6 +7,8 @@
with 'Catalyst::ScriptRole';
+has '+help' => (cmd_aliases => 'h');
+
has listen => (
traits => [qw(Getopt)],
cmd_aliases => 'l',
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-11-23 23:06:27 UTC (rev 11991)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Test.pm 2009-11-23 23:40:57 UTC (rev 11992)
@@ -4,6 +4,8 @@
with 'Catalyst::ScriptRole';
+has '+help' => (cmd_aliases => 'h');
+
sub run {
my $self = shift;
Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/ScriptRole.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/ScriptRole.pm 2009-11-23 23:06:27 UTC (rev 11991)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/ScriptRole.pm 2009-11-23 23:40:57 UTC (rev 11992)
@@ -15,7 +15,6 @@
has help => (
traits => ['Getopt'],
- cmd_aliases => 'h',
isa => Bool,
is => 'ro',
documentation => q{Display this help and exit},
More information about the Catalyst-commits
mailing list