From 262082f5462447a87584882153e961f1584e7942 Mon Sep 17 00:00:00 2001 From: andrews05 Date: Tue, 3 Dec 2024 00:34:52 +1300 Subject: [PATCH] Fix manpage for `--zi` (#653) I don't know if this is a bug in the mangen but it seems to require explicitly setting the value name to display correctly. Before: ``` --zi [default: 15] Set the number of iterations to use for Zopfli compression. ``` After: ``` --zi=iterations [default: 15] Set the number of iterations to use for Zopfli compression. ``` This does not affect MANUAL.txt or the built-in help. --- src/cli.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.rs b/src/cli.rs index cc861650..373d4141 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -344,6 +344,7 @@ Recommended use is with '-o max' and '--fast'.") Set the number of iterations to use for Zopfli compression. Using fewer iterations may \ speed up compression for large files. This option requires '--zopfli' to be set.") .long("zi") + .value_name("iterations") .default_value("15") .value_parser(1..=255) .requires("zopfli"),