mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
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:
parent
f97f6e1472
commit
30f4231776
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user