mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Add simple search command description
This commit is contained in:
parent
0ef4980ab3
commit
5b8a4b9969
2 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,6 @@ use std::path::PathBuf;
|
||||||
#[derive(Clone, Debug, clap::Parser)]
|
#[derive(Clone, Debug, clap::Parser)]
|
||||||
#[clap(about = "Archive a video")]
|
#[clap(about = "Archive a video")]
|
||||||
#[command(arg_required_else_help(true))]
|
#[command(arg_required_else_help(true))]
|
||||||
#[command()]
|
|
||||||
pub struct Archive {
|
pub struct Archive {
|
||||||
#[arg(help = format!("Audio languages. Can be used multiple times. \
|
#[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(", ")))]
|
Available languages are: {}", Locale::all().into_iter().map(|l| l.to_string()).collect::<Vec<String>>().join(", ")))]
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ use crunchyroll_rs::search::QueryResults;
|
||||||
use crunchyroll_rs::{Episode, Locale, MediaCollection, MovieListing, MusicVideo, Series};
|
use crunchyroll_rs::{Episode, Locale, MediaCollection, MovieListing, MusicVideo, Series};
|
||||||
|
|
||||||
#[derive(Debug, clap::Parser)]
|
#[derive(Debug, clap::Parser)]
|
||||||
|
#[clap(about = "Search in videos")]
|
||||||
|
#[command(arg_required_else_help(true))]
|
||||||
pub struct Search {
|
pub struct Search {
|
||||||
#[arg(help = format!("Audio languages to include. \
|
#[arg(help = format!("Audio languages to include. \
|
||||||
Available languages are: {}", Locale::all().into_iter().map(|l| l.to_string()).collect::<Vec<String>>().join(", ")))]
|
Available languages are: {}", Locale::all().into_iter().map(|l| l.to_string()).collect::<Vec<String>>().join(", ")))]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue