Bug 380859, fix perl warning, r=rhelmer

This commit is contained in:
nrthomas%gmail.com 2007-05-16 20:59:43 +00:00
Родитель d3690da13f
Коммит 182f9ea34e
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;
}