Commit 29943519 authored by James Zern's avatar James Zern
Browse files check for auto_help availability

'auto_help' was added to Getopt::Long in 2.33
this isn't strictly necessary as an unrecognized option (--help) will
issue a warning and then print the usage

Change-Id: Ia757553a4e19d22a8eb70768a8866ab1a76a0eec
parent 0cf0b02c
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
no strict 'refs'; no strict 'refs';
use warnings; use warnings;
use Getopt::Long; use Getopt::Long;
Getopt::Long::Configure("auto_help"); Getopt::Long::Configure("auto_help") if $Getopt::Long::VERSION > 2.32;
my %ALL_FUNCS = (); my %ALL_FUNCS = ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment