mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-01-09 23:34:42 +01:00
fix: improve format flag flexibility and usability
The format flag now supports multiple input syntaxes for better user experience: - Space-separated: --format webp or -f webp - Equals syntax: --format=webp - Case-insensitive: webp, WEBP, and WebP are all valid This change centralizes format flag setup in setupFormatFlag() function, making it consistent across optimize and watch commands while supporting both command-line usage and viper configuration binding. The improvements enhance CLI usability without breaking existing usage patterns.
This commit is contained in: