Add simple search command description

This commit is contained in:
bytedream 2023-06-20 00:53:12 +02:00
parent 0ef4980ab3
commit 5b8a4b9969
2 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,6 @@ use std::path::PathBuf;
#[derive(Clone, Debug, clap::Parser)]
#[clap(about = "Archive a video")]
#[command(arg_required_else_help(true))]
#[command()]
pub struct Archive {
#[arg(help = format!("Audio languages. Can be used multiple times. \
Available languages are: {}", Locale::all().into_iter().map(|l| l.to_string()).collect::<Vec<String>>().join(", ")))]

View file

@ -9,6 +9,8 @@ use crunchyroll_rs::search::QueryResults;
use crunchyroll_rs::{Episode, Locale, MediaCollection, MovieListing, MusicVideo, Series};
#[derive(Debug, clap::Parser)]
#[clap(about = "Search in videos")]
#[command(arg_required_else_help(true))]
pub struct Search {
#[arg(help = format!("Audio languages to include. \
Available languages are: {}", Locale::all().into_iter().map(|l| l.to_string()).collect::<Vec<String>>().join(", ")))]