Fix duplicate short options issue
Tomas Doran [Mon, 23 Nov 2009 23:40:57 +0000 (23:40 +0000)]
lib/Catalyst/Script/CGI.pm
lib/Catalyst/Script/Create.pm
lib/Catalyst/Script/FastCGI.pm
lib/Catalyst/Script/Test.pm
lib/Catalyst/ScriptRole.pm

index c37dfdc..842d82c 100644 (file)
@@ -5,6 +5,8 @@ use namespace::autoclean;
 
 with 'Catalyst::ScriptRole';
 
+has '+help' => (cmd_aliases => 'h');
+
 __PACKAGE__->meta->make_immutable;
 
 =head1 NAME
index 6191d72..47965a6 100644 (file)
@@ -6,6 +6,8 @@ use namespace::autoclean;
 
 with 'Catalyst::ScriptRole';
 
+has '+help' => (cmd_aliases => 'h');
+
 has force => (
     traits => [qw(Getopt)],
     cmd_aliases => 'nonew',
index d76727d..3179803 100644 (file)
@@ -7,6 +7,8 @@ use namespace::autoclean;
 
 with 'Catalyst::ScriptRole';
 
+has '+help' => (cmd_aliases => 'h');
+
 has listen => (
     traits => [qw(Getopt)],
     cmd_aliases => 'l',
index 7d5e978..8fe9d73 100644 (file)
@@ -4,6 +4,8 @@ use namespace::autoclean;
 
 with 'Catalyst::ScriptRole';
 
+has '+help' => (cmd_aliases => 'h');
+
 sub run {
     my $self = shift;
 
index bea26de..d65cfb5 100644 (file)
@@ -15,7 +15,6 @@ has application_name => (
 
 has help => (
     traits => ['Getopt'],
-    cmd_aliases => 'h',
     isa => Bool,
     is => 'ro',
     documentation => q{Display this help and exit},