X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScriptRole.pm;h=4bab7859988e029beeac7ebb0269eb7b6dc8b6e1;hb=d072f850678b945e42afdb9fc872abf6df916e9c;hp=b1ddc27ae05da5f2ef5ae55494eb15bb2f475f1a;hpb=8c848c3350612cba6e19d8fc4cdf4717760f62ae;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ScriptRole.pm b/lib/Catalyst/ScriptRole.pm index b1ddc27..4bab785 100644 --- a/lib/Catalyst/ScriptRole.pm +++ b/lib/Catalyst/ScriptRole.pm @@ -14,10 +14,11 @@ coerce 'Catalyst::ScriptRole::LoadableClass', via { ensure_class_loaded($_); 1 }; with 'MooseX::Getopt' => { + -version => 0.48, -excludes => [qw/ _getopt_spec_warnings _getopt_spec_exception - _getopt_full_usage + print_usage_text /], }; @@ -56,7 +57,7 @@ sub _getopt_spec_warnings { warn @_; } -sub _getopt_full_usage { +sub print_usage_text { my $self = shift; pod2usage(); exit 0; @@ -123,6 +124,10 @@ Role with the common functionality of Catalyst scripts. The method invoked to run the application. +=head2 print_usage_text + +Prints out the usage text for the script you tried to invoke. + =head1 ATTRIBUTES =head2 application_name