mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 380859, fix perl warning, r=rhelmer
This commit is contained in:
parent
7de4026e46
commit
27f0d0d5a3
@ -33,9 +33,10 @@ sub print_usage
|
|||||||
print " -h show this help text\n";
|
print " -h show this help text\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
getopts("h");
|
my %opts;
|
||||||
|
getopts("h", \%opts);
|
||||||
|
|
||||||
if (defined($::opt_h) || scalar(@ARGV) != 1) {
|
if (defined($opts{'h'}) || scalar(@ARGV) != 1) {
|
||||||
print_usage();
|
print_usage();
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user