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.
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.