From c3edf3110ea63fb34550bb0bb6894f237f2fa1dc Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 1 Sep 2025 13:21:00 +1200 Subject: [PATCH] Use lowercase z for zopfli --- README.md | 2 +- src/cli.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c41e644..7e3a213f 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ All options are case-sensitive. \* Note that oxipng is not a brute-force optimizer. This means that while higher optimization levels are almost always better or equal to lower levels, this is not guaranteed and it is possible in rare circumstances that a lower level may give a marginally smaller output. Similarly, using Zopfli -compression (`-Z`) is not guaranteed to always be better than without. +compression (`-z`) is not guaranteed to always be better than without. ## Git integration via [pre-commit] diff --git a/src/cli.rs b/src/cli.rs index 451dd349..8977cf99 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -324,7 +324,8 @@ be processed successfully.") .long_help("\ Use the much slower but stronger Zopfli compressor for main compression trials. \ Recommended use is with '-o max' and '--fast'.") - .short('Z') + .short('z') + .short_alias('Z') // Kept for backwards compatibility .long("zopfli") .action(ArgAction::SetTrue), )