Support old-style short options

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6517 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-11 18:48:25 +00:00
parent f97f6e1472
commit 30f4231776

View File

@ -31,16 +31,20 @@ use Shorewall::Compiler qw/ compiler $export /;
use Getopt::Long;
sub usage() {
print STDERR "usage: compiler.pl [ --export ] [ --directory <directory> ] [ --verbose {0-2} ] [ --timestamp ] [ <filename> ]\n";
print STDERR "usage: compiler.pl [ --export ] [ --directory=<directory> ] [ --verbose={0-2} ] [ --timestamp ] [ <filename> ]\n";
exit 1;
}
Getopt::Long::Configure ('bundling');
my $result = GetOptions('export' => \$export,
'e' => \$export,
'directory=s' => \$shorewall_dir,
'd=s' => \$shorewall_dir,
'verbose=i' => \$verbose,
'timestamp' => \$timestamp );
'v=i' => \$verbose,
'timestamp' => \$timestamp,
't' => \$timestamp );
usage unless $result;