From 6adacc346a6b0406e69e77a24b204f2e74182471 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 18:21:38 +0200 Subject: fix(select/cmds): Accept the watch flags for every command This makes it easier to change the status of a video, without having to painstakingly remove the flags too. --- src/cli.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 72ec877..3883cb1 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -190,6 +190,14 @@ pub struct SharedSelectionCommandArgs { #[arg(short, long)] pub priority: Option, + /// The subtitles to download (e.g. 'en,de,sv') + #[arg(short = 'l', long)] + pub subtitle_langs: Option, + + /// The speed to set mpv to + #[arg(short, long)] + pub speed: Option, + /// The short extractor hash pub hash: LazyExtractorHash, @@ -218,14 +226,6 @@ pub enum SelectCommand { Watch { #[command(flatten)] shared: SharedSelectionCommandArgs, - - /// The subtitles to download (e.g. 'en,de,sv') - #[arg(short = 'l', long)] - subtitle_langs: Option, - - /// The speed to set mpv to - #[arg(short, long)] - speed: Option, }, /// Mark the video given by the hash to be dropped -- cgit 1.4.1