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:
copilot-swe-agent[bot]
2025-12-10 21:16:16 +00:00
parent 43593c37fc
commit ba1ab20697

Diff Content Not Available