X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScriptRole.pm;h=535ed3d68cb819d468e68aa54f4922afe96c16f1;hb=8fa9321c8712ff964e93a72b4f78345d20400552;hp=089f2dfbd6520fc17f4ebc8d1adaf90701dcb611;hpb=3a8c155fa0077e949f68f29fbe4b835d5484a2c9;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ScriptRole.pm b/lib/Catalyst/ScriptRole.pm index 089f2df..535ed3d 100644 --- a/lib/Catalyst/ScriptRole.pm +++ b/lib/Catalyst/ScriptRole.pm @@ -14,18 +14,18 @@ with 'MooseX::Getopt' => { }; has application_name => ( - traits => ['NoGetopt'], - isa => Str, - is => 'ro', + traits => ['NoGetopt'], + isa => Str, + is => 'ro', required => 1, ); has help => ( - traits => ['Getopt'], - isa => Bool, - is => 'ro', - documentation => q{Display this help and exit}, - cmd_aliases => ['?', 'h'], + traits => ['Getopt'], + isa => Bool, + is => 'ro', + documentation => 'Display this help and exit', + cmd_aliases => ['?', 'h'], ); sub _getopt_spec_exception {} @@ -74,9 +74,9 @@ Catalyst::ScriptRole - Common functionality for Catalyst scripts. use Moose; use namespace::autoclean; - with 'Catalyst::Script::Role'; + with 'Catalyst::ScriptRole'; - sub _application_args { ... } + sub _application_args { ... } =head1 DESCRIPTION @@ -110,4 +110,3 @@ This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. =cut -