diff --git a/CLTool/src/clunix.cpp b/CLTool/src/clunix.cpp index 9ddb255..b4b770f 100644 --- a/CLTool/src/clunix.cpp +++ b/CLTool/src/clunix.cpp @@ -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;