Make sure to properly exit if there are no command line arguments.

This commit is contained in:
Pavel Krajcevski 2012-09-13 16:32:07 -04:00
parent 31f6233da2
commit 8799bf4ea8

View File

@ -11,6 +11,10 @@ void PrintUsage() {
int main(int argc, char **argv) {
int fileArg = 1;
if(fileArg == argc) {
PrintUsage();
exit(1);
}
int quality = 50;
int numThreads = 1;