diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 19c6cae89..b3c7a9900 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -168,8 +168,7 @@ 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"); - DISPLAY_F(f, " -q, --quiet Suppress warnings; pass twice to suppress errors.\n\n"); + DISPLAY_F(f, " passed-through through as-is.\n\n"); DISPLAY_F(f, " -h Display short usage and exit.\n"); DISPLAY_F(f, " -H, --help Display full help and exit.\n"); @@ -185,6 +184,7 @@ static void usageAdvanced(const char* programName) DISPLAYOUT("Advanced options:\n"); DISPLAYOUT(" -v, --verbose Enable verbose output; pass multiple times to increase verbosity.\n"); + DISPLAY_F(f, " -q, --quiet Suppress warnings; pass twice to suppress errors.\n"); #ifndef ZSTD_NOTRACE DISPLAYOUT(" --trace LOG Log tracing information to LOG.\n"); #endif diff --git a/tests/cli-tests/basic/help.sh.stdout.glob b/tests/cli-tests/basic/help.sh.stdout.glob index eb249bf2b..08cfdb1b3 100644 --- a/tests/cli-tests/basic/help.sh.stdout.glob +++ b/tests/cli-tests/basic/help.sh.stdout.glob @@ -20,12 +20,11 @@ Options: receiving input from the console, printing output to STDOUT, and operating on links, block devices, etc. Unrecognized formats will be passed-through through as-is. - -q, --quiet Suppress warnings; pass twice to suppress errors. -h Display short usage and exit. -H, --help Display full help and exit. -V, --version Display the program version and exit. - + + zstd -H ... Advanced options: