Show an error message if no url was given

This commit is contained in:
bytedream 2023-08-17 11:53:57 +02:00
parent 6a6b981979
commit 70b41b4dd5
2 changed files with 2 additions and 0 deletions

View file

@ -99,6 +99,7 @@ pub struct Archive {
pub(crate) yes: bool, pub(crate) yes: bool,
#[arg(help = "Crunchyroll series url(s)")] #[arg(help = "Crunchyroll series url(s)")]
#[arg(required = true)]
pub(crate) urls: Vec<String>, pub(crate) urls: Vec<String>,
} }

View file

@ -81,6 +81,7 @@ pub struct Download {
pub(crate) force_hardsub: bool, pub(crate) force_hardsub: bool,
#[arg(help = "Url(s) to Crunchyroll episodes or series")] #[arg(help = "Url(s) to Crunchyroll episodes or series")]
#[arg(required = true)]
pub(crate) urls: Vec<String>, pub(crate) urls: Vec<String>,
} }