Add warning message the --skip-existing-method has no effect without --skip-existing (#418)

This commit is contained in:
bytedream 2024-05-14 21:36:12 +02:00
parent 817963af4f
commit 590242712b

View file

@ -234,6 +234,10 @@ impl Execute for Archive {
bail!("`--include-chapters` can only be used if `--merge` is set to 'audio' or 'sync'") bail!("`--include-chapters` can only be used if `--merge` is set to 'audio' or 'sync'")
} }
if !self.skip_existing_method.is_empty() && !self.skip_existing {
warn!("`--skip-existing-method` has no effect if `--skip-existing` is not set")
}
self.audio = all_locale_in_locales(self.audio.clone()); self.audio = all_locale_in_locales(self.audio.clone());
self.subtitle = all_locale_in_locales(self.subtitle.clone()); self.subtitle = all_locale_in_locales(self.subtitle.clone());