From 1b1756a0ae3684d1d7e1282f5cd347a144c9e449 Mon Sep 17 00:00:00 2001 From: ByteDream Date: Wed, 7 Dec 2022 15:12:01 +0100 Subject: [PATCH] Add long help to ffmpeg preset --- crunchy-cli-core/src/cli/archive.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crunchy-cli-core/src/cli/archive.rs b/crunchy-cli-core/src/cli/archive.rs index a6e6d4e..057e7a8 100644 --- a/crunchy-cli-core/src/cli/archive.rs +++ b/crunchy-cli-core/src/cli/archive.rs @@ -223,7 +223,12 @@ pub struct Archive { #[arg(value_parser = MergeBehavior::parse)] merge: MergeBehavior, - #[arg(help = format!("Presets for audio converting. Available presets: \n {}", FFmpegPreset::all().into_iter().map(|p| format!("{}: {}", p.to_string(), p.description())).collect::>().join("\n ")))] + #[arg(help = format!("Presets for audio converting. \ + Available presets: \n {}", FFmpegPreset::all().into_iter().map(|p| format!("{}: {}", p.to_string(), p.description())).collect::>().join("\n ")))] + #[arg(help = format!("Presets for audio converting. \ + Generally used to minify the file size with keeping (nearly) the same quality. \ + It is recommended to only use this if you archive videos with high resolutions since low resolution videos tend to result in a larger file with any of the provided presets. \ + Available presets: \n {}", FFmpegPreset::all().into_iter().map(|p| format!("{}: {}", p.to_string(), p.description())).collect::>().join("\n ")))] #[arg(long)] #[arg(value_parser = FFmpegPreset::parse)] ffmpeg_preset: Vec,