Clean up the messy help output.

This commit is contained in:
Con Kolivas 2011-02-21 12:49:44 +11:00
parent a85b17a463
commit 29dfb16c7a
2 changed files with 48 additions and 39 deletions

41
main.c
View file

@ -27,38 +27,41 @@ static void usage(void)
print_output("Based on rzip ");
print_output("Copyright (C) Andrew Tridgell 1998-2003\n");
print_output("usage: lrzip [options] <file...>\n");
print_output(" Options:\n");
print_output(" -w size maximum compression window in hundreds of MB\n");
print_output(" default chosen by heuristic dependent on ram and chosen compression\n");
print_output("General options:\n");
print_output(" -c check integrity of file written on decompression\n");
print_output(" -d decompress\n");
print_output(" -H display md5 hash integrity information\n");
print_output(" -i show compressed file information\n");
print_output(" -q don't show compression progress\n");
print_output(" -t test compressed file integrity\n");
print_output(" -v[v] Increase verbosity\n");
print_output(" -V show version\n");
print_output("Options affecting output:\n");
print_output(" -D delete existing files\n");
print_output(" -f force overwrite of any existing files\n");
print_output(" -k keep broken or damaged output files\n");
print_output(" -o filename specify the output file name and/or path\n");
print_output(" -O directory specify the output directory when -o is not used\n");
print_output(" -S suffix specify compressed suffix (default '.lrz')\n");
print_output(" -f force overwrite of any existing files\n");
print_output(" -D delete existing files\n");
print_output(" -q don't show compression progress\n");
print_output(" -L level set lzma/bzip2/gzip compression level (1-9, default 7)\n");
print_output(" -n no backend compression - prepare for other compressor\n");
print_output(" -l lzo compression (ultra fast)\n");
print_output("Options affecting compression:\n");
print_output(" -b bzip2 compression\n");
print_output(" -g gzip compression using zlib\n");
print_output(" -l lzo compression (ultra fast)\n");
print_output(" -n no backend compression - prepare for other compressor\n");
print_output(" -z zpaq compression (best, extreme compression, extremely slow)\n");
print_output("Low level options:\n");
print_output(" -L level set lzma/bzip2/gzip compression level (1-9, default 7)\n");
print_output(" -M Maximum window (all available ram)\n");
print_output(" -U Use unlimited window size beyond ramsize (potentially much slower)\n");
print_output(" -T value Compression threshold with LZO test. (0 (nil) - 10 (high), default 1)\n");
print_output(" -N value Set nice value to value (default 19)\n");
print_output(" -p value Set processor count to override number of threads\n");
print_output(" -v[v] Increase verbosity\n");
print_output(" -V show version\n");
print_output(" -t test compressed file integrity\n");
print_output(" -i show compressed file information\n");
print_output(" -H display md5 hash integrity information\n");
print_output(" -c check integrity of file written on decompression\n");
print_output(" -k keep broken or damaged output files\n");
print_output(" -T value Compression threshold with LZO test. (0 (nil) - 10 (high), default 1)\n");
print_output(" -U Use unlimited window size beyond ramsize (potentially much slower)\n");
print_output(" -w size maximum compression window in hundreds of MB\n");
print_output(" default chosen by heuristic dependent on ram and chosen compression\n");
print_output("\nLRZIP=NOCONFIG environment variable setting can be used to bypass lrzip.conf.\n");
print_output("TMP environment variable will be used for storage of temporary files when needed.\n\
TMPDIR may also be stored in lrzip.conf file.\n");
print_output("If no filenames or \"-\" is specified, stdin/out will be used.\n");
print_output("\nIf no filenames or \"-\" is specified, stdin/out will be used.\n");
}

View file

@ -31,39 +31,45 @@ Here is a summary of the options to lrzip\&.
.nf
\-w size compression window in hundreds of MB
default chosen by heuristic dependent on ram and chosen compression
General options:
\-c check integrity of file written on decompression
\-d decompress
\-H display md5 hash integrity information
\-i show compressed file information
\-q don't show compression progress
\-t test compressed file integrity
\-v[v] Increase verbosity
\-V show version
Options affecting output:
\-D delete existing files
\-f force overwrite of any existing files
\-k keep broken or damaged output files
\-o filename specify the output file name and/or path
\-O directory specify the output directory when \-o is not used
\-S suffix specify compressed suffix (default '.lrz')
\-f force overwrite of any existing files
\-D delete existing files
\-q don't show compression progress
\-L level set rzip/lzma/bzip2/gzip compression level (1\-9, default 7)
\-n no backend compression. Prepare for other compressor
\-l lzo compression (ultra fast)
Options affecting compression:
\-b bzip2 compression
\-g gzip compression using zlib
\-l lzo compression (ultra fast)
\-n no backend compression - prepare for other compressor
\-z zpaq compression (best, extreme compression, extremely slow)
Low level options:
\-L level set lzma/bzip2/gzip compression level (1\-9, default 7)
\-M Maximum window (all available ram)
\-U Use unlimited window size beyond ramsize (potentially much slower)
\-T value Compression threshold with LZO test. (0 (nil) - 10 (high), default 1)
\-N value Set nice value to value (default 19)
\-p value Set processor count to override number of threads
\-v[v] Verbose. Multiple invocations Increase verbosity
\-V show version
\-t test compressed file integrity
\-i show compressed file information
\-H display md5 hash integrity information
\-c check integrity of file written on decompression
\-k keep broken or damaged files
\-T value Compression threshold with LZO test. (0 (nil) - 10 (high), default 1)
\-U Use unlimited window size beyond ramsize (potentially much slower)
\-w size maximum compression window in hundreds of MB
default chosen by heuristic dependent on ram and chosen compression
LRZIP=NOCONFIG environment variable setting can be used to bypass lrzip.conf.
TMP environment variable will be used for storage of temporary files when needed.
TMPDIR may also be stored in lrzip.conf file.
If no filenames or "-" is specified, stdin/out will be used (stdin/out is
inefficient with lrzip and not recommended usage).
If no filenames or "-" is specified, stdin/out will be used.
(stdin/out is inefficient with lrzip and not recommended usage).
.fi