Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Getopt-Long-Descriptive CPAN distribution.

Report information
The Basics
Id: 53328
Status: resolved
Priority: 0/
Queue: Getopt-Long-Descriptive

People
Owner: Nobody in particular
Requestors: DOUGDUDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.082
  • 0.083
Fixed in: (no value)



Subject: Not producing help message anymore
Ever since Getopt::Long::Descriptive was updated to 0.082 and up, my module Nagios::Plugin::OverHTTP has been failing because Getopt::Long::Descriptive is not producing a usage message (Getopt::Long is invoking it's auto help, now that you are using Getopt::Long 2.33) since my file contains no POD.

After working through the debugger, it looks like the change in 0.082 which added "use Getopt::Long 2.33" turned on the auto_help feature by accident. This causes the --help command to my script to invoke the pod2usage though Getopt::Long and then giving no help output since there is no POD in the program file.

I suggest you add to your call of Getopt::Long::Configure to turn off the auto_help feature by adding
push @go_conf, 'no_auto_help';
somewhere in _build_describe_options before the Configure call.

That's horrible! Please test with 0.084, just uploaded. If it works, DO NOTHING. If it still fails, please reply. -- rjbs