rtcd.pl: 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
This commit is contained in:
James Zern 2014-07-24 14:55:19 -07:00
parent 0cf0b02c4c
commit 29943519a7

View File

@ -3,7 +3,7 @@
no strict 'refs';
use warnings;
use Getopt::Long;
Getopt::Long::Configure("auto_help");
Getopt::Long::Configure("auto_help") if $Getopt::Long::VERSION > 2.32;
my %ALL_FUNCS = ();
my @ALL_ARCHS;