From: Jennifer Lee Date: Mon, 9 Mar 2026 23:30:41 +0000 (-0700) Subject: Promote flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043426b3e226a6f4b7325cfbdd21da90f702a892;p=thirdparty%2Fzstd.git Promote flag --- diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 34db7bf51..19c6cae89 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -147,6 +147,7 @@ static void usage(FILE* f, const char* programName) DISPLAY_F(f, "Usage: %s [OPTIONS...] [INPUT... | -] [-o OUTPUT]\n\n", programName); DISPLAY_F(f, "Options:\n"); DISPLAY_F(f, " -o OUTPUT Write output to a single file, OUTPUT.\n"); + DISPLAY_F(f, " -c, --stdout Write to STDOUT (even if it is a console) and keep the INPUT file(s).\n"); DISPLAY_F(f, " -k, --keep Preserve INPUT file(s). [Default] \n"); DISPLAY_F(f, " --rm Remove INPUT file(s) after successful (de)compression to file.\n"); #ifdef ZSTD_GZCOMPRESS @@ -167,7 +168,8 @@ static void usage(FILE* f, const char* programName) DISPLAY_F(f, " -f, --force Disable input and output checks. Allows overwriting existing files,\n"); DISPLAY_F(f, " receiving input from the console, printing output to STDOUT, and\n"); DISPLAY_F(f, " operating on links, block devices, etc. Unrecognized formats will be\n"); - DISPLAY_F(f, " passed-through through as-is.\n\n"); + DISPLAY_F(f, " passed-through through as-is.\n"); + DISPLAY_F(f, " -q, --quiet Suppress warnings; pass twice to suppress errors.\n\n"); DISPLAY_F(f, " -h Display short usage and exit.\n"); DISPLAY_F(f, " -H, --help Display full help and exit.\n"); @@ -181,10 +183,8 @@ static void usageAdvanced(const char* programName) DISPLAYOUT("\n"); usage(stdout, programName); DISPLAYOUT("Advanced options:\n"); - DISPLAYOUT(" -c, --stdout Write to STDOUT (even if it is a console) and keep the INPUT file(s).\n\n"); DISPLAYOUT(" -v, --verbose Enable verbose output; pass multiple times to increase verbosity.\n"); - DISPLAYOUT(" -q, --quiet Suppress warnings; pass twice to suppress errors.\n"); #ifndef ZSTD_NOTRACE DISPLAYOUT(" --trace LOG Log tracing information to LOG.\n"); #endif