diff --git a/CLTool/src/clwin32.cpp b/CLTool/src/clwin32.cpp index 44859cb..7185746 100644 --- a/CLTool/src/clwin32.cpp +++ b/CLTool/src/clwin32.cpp @@ -52,7 +52,14 @@ #include "Image.h" void PrintUsage() { - fprintf(stderr, "Usage: tc [-l] [-q ] [-n ] [-simd] [-t [-j ]] \n"); + fprintf(stderr, "Usage: tc [OPTIONS] imagefile\n"); + fprintf(stderr, "\n"); + fprintf(stderr, "\t-l\t\tSave an output log.\n"); + fprintf(stderr, "\t-q \tSet compression quality level. Default: 50\n"); + fprintf(stderr, "\t-n \tCompress the image num times and give the average time and PSNR. Default: 1\n"); + fprintf(stderr, "\t-simd\t\tUse SIMD compression path\n"); + fprintf(stderr, "\t-t \tCompress the image using threads. Default: 1\n"); + fprintf(stderr, "\t-j \tUse blocks for each work item in a worker queue threading model. Default: (Blocks / Threads)\n"); } void ExtractBasename(const char *filename, char *buf, uint32 bufSz) { @@ -120,8 +127,8 @@ int _tmain(int argc, _TCHAR* argv[]) fileArg++; if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) { - PrintUsage(); - exit(1); + PrintUsage(); + exit(1); } fileArg++; @@ -133,8 +140,8 @@ int _tmain(int argc, _TCHAR* argv[]) fileArg++; if(fileArg == argc || (quality = atoi(argv[fileArg])) < 0) { - PrintUsage(); - exit(1); + PrintUsage(); + exit(1); } fileArg++; @@ -146,8 +153,8 @@ int _tmain(int argc, _TCHAR* argv[]) fileArg++; if(fileArg == argc || (numJobs = atoi(argv[fileArg])) < 0) { - PrintUsage(); - exit(1); + PrintUsage(); + exit(1); } fileArg++;