diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 31b06d67be5..1135fb822bd 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -170,7 +170,9 @@ 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"); + DISPLAY_F(f, " -v, --verbose Enable verbose output; pass multiple times to increase verbosity.\n\n"); DISPLAY_F(f, " -h Display short usage and exit.\n"); DISPLAY_F(f, " -H, --help Display full help and exit.\n"); @@ -185,8 +187,6 @@ static void usageAdvanced(const char* programName) usage(stdout, programName); DISPLAYOUT("Advanced options:\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 diff --git a/tests/cli-tests/basic/help.sh.stdout.glob b/tests/cli-tests/basic/help.sh.stdout.glob index 08cfdb1b348..59e69db24e0 100644 --- a/tests/cli-tests/basic/help.sh.stdout.glob +++ b/tests/cli-tests/basic/help.sh.stdout.glob @@ -20,6 +20,8 @@ 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. + -v, --verbose Enable verbose output; pass multiple times to increase verbosity. -h Display short usage and exit. -H, --help Display full help and exit.