-************************************ * Command Line **************************************/
| 800 | * Command Line |
| 801 | **************************************/ |
| 802 | static int usage(const char* programName) |
| 803 | { |
| 804 | DISPLAY(WELCOME_MESSAGE); |
| 805 | DISPLAY( "Usage :\n"); |
| 806 | DISPLAY( " %s [args] [FILE(s)] [-o file]\n", programName); |
| 807 | DISPLAY( "\n"); |
| 808 | DISPLAY( "FILE : a filename\n"); |
| 809 | DISPLAY( " with no FILE, or when FILE is - , read standard input\n"); |
| 810 | DISPLAY( "Arguments :\n"); |
| 811 | DISPLAY( " -D file: use `file` as Dictionary \n"); |
| 812 | DISPLAY( " -h/-H : display help/long help and exit\n"); |
| 813 | DISPLAY( " -V : display Version number and exit\n"); |
| 814 | DISPLAY( " -v : verbose mode; specify multiple times to increase log level (default:%d)\n", DEFAULT_DISPLAY_LEVEL); |
| 815 | DISPLAY( " -q : suppress warnings; specify twice to suppress errors too\n"); |
| 816 | #ifdef UTIL_HAS_CREATEFILELIST |
| 817 | DISPLAY( " -r : operate recursively on directories\n"); |
| 818 | #endif |
| 819 | DISPLAY( "\n"); |
| 820 | DISPLAY( "Benchmark arguments :\n"); |
| 821 | DISPLAY( " -b# : benchmark file(s), using # compression level (default : %d) \n", ZSTDCLI_CLEVEL_DEFAULT); |
| 822 | DISPLAY( " -e# : test all compression levels from -bX to # (default: %d)\n", ZSTDCLI_CLEVEL_DEFAULT); |
| 823 | DISPLAY( " -i# : minimum evaluation time in seconds (default : 3s)\n"); |
| 824 | DISPLAY( " -B# : cut file into independent blocks of size # (default: no block)\n"); |
| 825 | return 0; |
| 826 | } |
| 827 | |
| 828 | static int badusage(const char* programName) |
| 829 | { |