Skip to content

Commit

Permalink
Fix manpage for --zi (#653)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrews05 authored Dec 2, 2024
1 parent f8c84c2 commit 262082f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 262082f

Please sign in to comment.