From 50aea2f293ae3f1fff5cb918e36dbf812cffa9e2 Mon Sep 17 00:00:00 2001 From: ne-sted <33594142+ne-sted@users.noreply.github.com> Date: Wed, 24 Jan 2018 14:59:44 +0200 Subject: [PATCH] cli: fix align of defaults --- programs/README.md | 12 ++++++------ programs/zstd.1 | 4 ++-- programs/zstd.1.md | 6 +++--- programs/zstdcli.c | 20 ++++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/programs/README.md b/programs/README.md index 1331a684..a308fccf 100644 --- a/programs/README.md +++ b/programs/README.md @@ -120,7 +120,7 @@ Usage : FILE : a filename with no FILE, or when FILE is - , read standard input Arguments : - -# : # compression level (1-19, default:3) + -# : # compression level (1-19, default: 3) -d : decompression -D file: use `file` as Dictionary -o file: result stored into `file` (only if 1 input file) @@ -138,13 +138,13 @@ Advanced arguments : --ultra : enable levels beyond 19, up to 22 (requires more memory) --long : enable long distance matching (requires more memory) --no-dictID : don't write dictID into header (dictionary compression) ---[no-]check : integrity check (default:enabled) +--[no-]check : integrity check (default: enabled) -r : operate recursively on directories --format=gzip : compress files to the .gz format --format=xz : compress files to the .xz format --format=lzma : compress files to the .lzma format --test : test compressed file integrity ---[no-]sparse : sparse mode (default:disabled) +--[no-]sparse : sparse mode (default: disabled) -M# : Set a memory usage limit for decompression -- : All arguments after "--" are treated as files @@ -153,13 +153,13 @@ Dictionary builder : --train-cover[=k=#,d=#,steps=#] : use the cover algorithm with optional args --train-legacy[=s=#] : use the legacy algorithm with selectivity (default: 9) -o file : `file` is dictionary name (default: dictionary) ---maxdict=# : limit dictionary to specified size (default : 112640) +--maxdict=# : limit dictionary to specified size (default: 112640) --dictID=# : force dictionary ID to specified value (default: random) Benchmark arguments : - -b# : benchmark file(s), using # compression level (default : 1) + -b# : benchmark file(s), using # compression level (default: 3) -e# : test all compression levels from -bX to # (default: 1) - -i# : minimum evaluation time in seconds (default : 3s) + -i# : minimum evaluation time in seconds (default: 3s) -B# : cut file into independent blocks of size # (default: no block) --priority=rt : set process priority to real-time ``` diff --git a/programs/zstd.1 b/programs/zstd.1 index e0902e85..d253124f 100644 --- a/programs/zstd.1 +++ b/programs/zstd.1 @@ -172,7 +172,7 @@ suppress warnings, interactivity, and notifications\. specify twice to suppress . .TP \fB\-C\fR, \fB\-\-[no\-]check\fR -add integrity check computed from uncompressed data (default : enabled) +add integrity check computed from uncompressed data (default: enabled) . .TP \fB\-\-\fR @@ -251,7 +251,7 @@ benchmark file(s) using multiple compression levels, from \fB\-b#\fR to \fB\-e#\ . .TP \fB\-i#\fR -minimum evaluation time, in seconds (default : 3s), benchmark mode only +minimum evaluation time, in seconds (default: 3s), benchmark mode only . .TP \fB\-B#\fR, \fB\-\-block\-size=#\fR diff --git a/programs/zstd.1.md b/programs/zstd.1.md index 9e4c5d30..c5ff5356 100644 --- a/programs/zstd.1.md +++ b/programs/zstd.1.md @@ -137,7 +137,7 @@ the last one takes effect. to make files with many zeroes smaller on disk. Creating sparse files may save disk space and speed up decompression by reducing the amount of disk I/O. - default : enabled when output is into a file, + default: enabled when output is into a file, and disabled when output is stdout. This setting overrides default and can force sparse mode over stdout. * `--rm`: @@ -163,7 +163,7 @@ the last one takes effect. suppress warnings, interactivity, and notifications. specify twice to suppress errors too. * `-C`, `--[no-]check`: - add integrity check computed from uncompressed data (default : enabled) + add integrity check computed from uncompressed data (default: enabled) * `--`: All arguments after `--` are treated as files @@ -252,7 +252,7 @@ BENCHMARK * `-e#`: benchmark file(s) using multiple compression levels, from `-b#` to `-e#` (inclusive) * `-i#`: - minimum evaluation time, in seconds (default : 3s), benchmark mode only + minimum evaluation time, in seconds (default: 3s), benchmark mode only * `-B#`, `--block-size=#`: cut file(s) into independent blocks of size # (default: no block) * `--priority=rt`: diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 7beb2cb4..c80c36ac 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -106,7 +106,7 @@ static int usage(const char* programName) DISPLAY( " with no FILE, or when FILE is - , read standard input\n"); DISPLAY( "Arguments : \n"); #ifndef ZSTD_NOCOMPRESS - DISPLAY( " -# : # compression level (1-%d, default:%d) \n", ZSTDCLI_CLEVEL_MAX, ZSTDCLI_CLEVEL_DEFAULT); + DISPLAY( " -# : # compression level (1-%d, default: %d) \n", ZSTDCLI_CLEVEL_MAX, ZSTDCLI_CLEVEL_DEFAULT); #endif #ifndef ZSTD_NODECOMPRESS DISPLAY( " -d : decompression \n"); @@ -133,13 +133,13 @@ static int usage_advanced(const char* programName) DISPLAY( " -l : print information about zstd compressed files \n"); #ifndef ZSTD_NOCOMPRESS DISPLAY( "--ultra : enable levels beyond %i, up to %i (requires more memory)\n", ZSTDCLI_CLEVEL_MAX, ZSTD_maxCLevel()); - DISPLAY( "--long[=#] : enable long distance matching with given window log (default : %u)\n", g_defaultMaxWindowLog); + DISPLAY( "--long[=#] : enable long distance matching with given window log (default: %u)\n", g_defaultMaxWindowLog); #ifdef ZSTD_MULTITHREAD - DISPLAY( " -T# : use # threads for compression (default:1) \n"); - DISPLAY( " -B# : select size of each job (default:0==automatic) \n"); + DISPLAY( " -T# : use # threads for compression (default: 1) \n"); + DISPLAY( " -B# : select size of each job (default: 0==automatic) \n"); #endif DISPLAY( "--no-dictID : don't write dictID into header (dictionary compression)\n"); - DISPLAY( "--[no-]check : integrity check (default:enabled) \n"); + DISPLAY( "--[no-]check : integrity check (default: enabled) \n"); #endif #ifdef UTIL_HAS_CREATEFILELIST DISPLAY( " -r : operate recursively on directories \n"); @@ -157,9 +157,9 @@ static int usage_advanced(const char* programName) #ifndef ZSTD_NODECOMPRESS DISPLAY( "--test : test compressed file integrity \n"); #if ZSTD_SPARSE_DEFAULT - DISPLAY( "--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)\n"); + DISPLAY( "--[no-]sparse : sparse mode (default: enabled on file, disabled on stdout)\n"); #else - DISPLAY( "--[no-]sparse : sparse mode (default:disabled)\n"); + DISPLAY( "--[no-]sparse : sparse mode (default: disabled)\n"); #endif #endif DISPLAY( " -M# : Set a memory usage limit for decompression \n"); @@ -171,15 +171,15 @@ static int usage_advanced(const char* programName) DISPLAY( "--train-cover[=k=#,d=#,steps=#] : use the cover algorithm with optional args\n"); DISPLAY( "--train-legacy[=s=#] : use the legacy algorithm with selectivity (default: %u)\n", g_defaultSelectivityLevel); DISPLAY( " -o file : `file` is dictionary name (default: %s) \n", g_defaultDictName); - DISPLAY( "--maxdict=# : limit dictionary to specified size (default : %u) \n", g_defaultMaxDictSize); + DISPLAY( "--maxdict=# : limit dictionary to specified size (default: %u) \n", g_defaultMaxDictSize); DISPLAY( "--dictID=# : force dictionary ID to specified value (default: random)\n"); #endif #ifndef ZSTD_NOBENCH DISPLAY( "\n"); DISPLAY( "Benchmark arguments : \n"); - DISPLAY( " -b# : benchmark file(s), using # compression level (default : 1) \n"); + DISPLAY( " -b# : benchmark file(s), using # compression level (default: %d) \n", ZSTDCLI_CLEVEL_DEFAULT); DISPLAY( " -e# : test all compression levels from -bX to # (default: 1)\n"); - DISPLAY( " -i# : minimum evaluation time in seconds (default : 3s) \n"); + DISPLAY( " -i# : minimum evaluation time in seconds (default: 3s) \n"); DISPLAY( " -B# : cut file into independent blocks of size # (default: no block)\n"); DISPLAY( "--priority=rt : set process priority to real-time \n"); #endif