X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FGetopt%2FBasic.pm;h=240f683f263b893e1046b67f6bf5c22e86b28198;hb=b150707212285aa9a67390a15ececeb9ef204cdd;hp=f0b06bc6a3d9d3d3b2bfe45e1ae020f7fa1b2e16;hpb=83446b781bbe89f41f87f2c03f07065bda919f43;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt/Basic.pm b/lib/MooseX/Getopt/Basic.pm index f0b06bc..240f683 100644 --- a/lib/MooseX/Getopt/Basic.pm +++ b/lib/MooseX/Getopt/Basic.pm @@ -152,17 +152,18 @@ sub _getopt_spec_exception { die @$warnings, $exception; } -#(this is already documented in MooseX::Getopt. But FIXME later, via RT#82195) -=for Pod::Coverage - print_usage_text -=cut -sub print_usage_text { +# maintained for backwards compatibility only +sub _getopt_full_usage +{ my ($self, $usage) = @_; print $usage->text; exit 0; } -# maintained for backwards compatibility only -sub _getopt_full_usage { shift->print_usage_text(@_) } +#(this is already documented in MooseX::Getopt. But FIXME later, via RT#82195) +=for Pod::Coverage + print_usage_text +=cut +sub print_usage_text { shift->_getopt_full_usage(@_) } sub _usage_format { return "usage: %c %o";