зеркало из https://github.com/mozilla/pjs.git
Bug 380859, fix perl warning, r=rhelmer
This commit is contained in:
Родитель
d3690da13f
Коммит
182f9ea34e
|
@ -33,9 +33,10 @@ sub print_usage
|
|||
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();
|
||||
exit 1;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче