diff --git a/src/cli.rs b/src/cli.rs index 71ef220d..adf0788b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1,4 +1,5 @@ use clap::{command, Command}; +use indoc::indoc; use self::codecs::Codecs; @@ -9,7 +10,29 @@ pub mod preprocessors; pub mod utils; pub fn cli() -> Command { - command!().arg_required_else_help(true).codecs() + command!() + .arg_required_else_help(true) + .after_help(indoc! {r#"List of supported codecs + + | Image Format | Decoder | Encoder | + | ------------ | ------------- | ----------------------- | + | bmp | zune-bmp | X | + | jpeg | zune-jpeg | mozjpeg or jpeg-encoder | + | png | zune-png | oxipng or zune-png | + | avif | libavif | ravif | + | webp | webp | webp | + | ppm | zune-ppm | zune-ppm | + | qoi | zune-qoi | zune-qoi | + | farbfeld | zune-farbfeld | zune-farbfeld | + | psd | zune-psd | X | + | jpeg-xl | jxl-oxide | zune-jpegxl | + | hdr | zune-hdr | zune-hdr | + + List of supported preprocessing options + + - Resize + - Quantization"#}) + .codecs() } #[cfg(test)]