| 133 | } |
| 134 | |
| 135 | static void usage_advanced(const char* programName) |
| 136 | { |
| 137 | DISPLAYOUT(WELCOME_MESSAGE); |
| 138 | usage(stdout, programName); |
| 139 | DISPLAYOUT( "\n"); |
| 140 | DISPLAYOUT( "Advanced arguments : \n"); |
| 141 | DISPLAYOUT( " -V : display Version number and exit \n"); |
| 142 | |
| 143 | DISPLAYOUT( " -c : force write to standard output, even if it is the console \n"); |
| 144 | |
| 145 | DISPLAYOUT( " -v : verbose mode; specify multiple times to increase verbosity \n"); |
| 146 | DISPLAYOUT( " -q : suppress warnings; specify twice to suppress errors too \n"); |
| 147 | DISPLAYOUT( "--no-progress : do not display the progress counter \n"); |
| 148 | |
| 149 | #ifdef UTIL_HAS_CREATEFILELIST |
| 150 | DISPLAYOUT( " -r : operate recursively on directories \n"); |
| 151 | DISPLAYOUT( "--filelist FILE : read list of files to operate upon from FILE \n"); |
| 152 | DISPLAYOUT( "--output-dir-flat DIR : processed files are stored into DIR \n"); |
| 153 | #endif |
| 154 | |
| 155 | #ifdef UTIL_HAS_MIRRORFILELIST |
| 156 | DISPLAYOUT( "--output-dir-mirror DIR : processed files are stored into DIR respecting original directory structure \n"); |
| 157 | #endif |
| 158 | |
| 159 | |
| 160 | #ifndef ZSTD_NOCOMPRESS |
| 161 | DISPLAYOUT( "--[no-]check : during compression, add XXH64 integrity checksum to frame (default: enabled)"); |
| 162 | #ifndef ZSTD_NODECOMPRESS |
| 163 | DISPLAYOUT( ". If specified with -d, decompressor will ignore/validate checksums in compressed frame (default: validate)."); |
| 164 | #endif |
| 165 | #else |
| 166 | #ifdef ZSTD_NOCOMPRESS |
| 167 | DISPLAYOUT( "--[no-]check : during decompression, ignore/validate checksums in compressed frame (default: validate)."); |
| 168 | #endif |
| 169 | #endif /* ZSTD_NOCOMPRESS */ |
| 170 | DISPLAYOUT( "\n"); |
| 171 | |
| 172 | DISPLAYOUT( "-- : All arguments after \"--\" are treated as files \n"); |
| 173 | |
| 174 | #ifndef ZSTD_NOCOMPRESS |
| 175 | DISPLAYOUT( "\n"); |
| 176 | DISPLAYOUT( "Advanced compression arguments : \n"); |
| 177 | DISPLAYOUT( "--ultra : enable levels beyond %i, up to %i (requires more memory) \n", ZSTDCLI_CLEVEL_MAX, ZSTD_maxCLevel()); |
| 178 | DISPLAYOUT( "--long[=#]: enable long distance matching with given window log (default: %u) \n", g_defaultMaxWindowLog); |
| 179 | DISPLAYOUT( "--fast[=#]: switch to very fast compression levels (default: %u) \n", 1); |
| 180 | DISPLAYOUT( "--adapt : dynamically adapt compression level to I/O conditions \n"); |
| 181 | # ifdef ZSTD_MULTITHREAD |
| 182 | DISPLAYOUT( " -T# : spawns # compression threads (default: 1, 0==# cores) \n"); |
| 183 | DISPLAYOUT( " -B# : select size of each job (default: 0==automatic) \n"); |
| 184 | DISPLAYOUT( "--single-thread : use a single thread for both I/O and compression (result slightly different than -T1) \n"); |
| 185 | DISPLAYOUT( "--rsyncable : compress using a rsync-friendly method (-B sets block size) \n"); |
| 186 | # endif |
| 187 | DISPLAYOUT( "--exclude-compressed: only compress files that are not already compressed \n"); |
| 188 | DISPLAYOUT( "--stream-size=# : specify size of streaming input from `stdin` \n"); |
| 189 | DISPLAYOUT( "--size-hint=# optimize compression parameters for streaming input of approximately this size \n"); |
| 190 | DISPLAYOUT( "--target-compressed-block-size=# : generate compressed block of approximately targeted size \n"); |
| 191 | DISPLAYOUT( "--no-dictID : don't write dictID into header (dictionary compression only) \n"); |
| 192 | DISPLAYOUT( "--[no-]compress-literals : force (un)compressed literals \n"); |
no test coverage detected