Illegal->Unknown and show usage on wrong options

Reviewed-by: axis
This commit is contained in:
Marius Storm-Olsen
2011-05-04 12:40:38 -05:00
parent 257d74c476
commit 1a9f4af89f

View File

@@ -96,7 +96,9 @@ while (@ARGV) {
} elsif ($arg eq "-no-update") {
$no_update = 1;
} else {
die("Illegal argument: $arg");
print("*** Unknown option: $arg\n");
printUsage();
exit(1);
}
shift;
}