use strict;
use warnings;
-use Getopt::Std;
+use Getopt::Long;
use CGI::SSI;
sub main
$SIG{'__WARN__'} = \&warning;
- if (not getopts('o:hV', \%opts)) {
+ Getopt::Long::Configure("no_ignore_case", "bundling", "gnu_compat",
+ "no_getopt_compat");
+ if (not GetOptions(\%opts,
+ "o=s",
+ "h|help",
+ "V|version",
+ )) {
usage(*STDERR);
}
usage($fh);
print("Options:\n");
- print(" -o <output> Place the output into <output>\n");
- print(" -h Display this information\n");
- print(" -V Display compiler version information\n");
+ print(" -o <output> Place the output into <output>\n");
+ print(" -h, --help Display this information\n");
+ print(" -V, --version Display compiler version information\n");
}
sub version