diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 18:21:38 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 18:24:39 +0200 |
commit | 6adacc346a6b0406e69e77a24b204f2e74182471 (patch) | |
tree | d7c3c8bceb4be84a8e20703fa4b008f73f8ee3c5 /src/cli.rs | |
parent | feat(videos): Init (diff) | |
download | yt-6adacc346a6b0406e69e77a24b204f2e74182471.tar.gz yt-6adacc346a6b0406e69e77a24b204f2e74182471.zip |
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.
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 16 |
1 files changed, 8 insertions, 8 deletions
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<i64>, + /// The subtitles to download (e.g. 'en,de,sv') + #[arg(short = 'l', long)] + pub subtitle_langs: Option<String>, + + /// The speed to set mpv to + #[arg(short, long)] + pub speed: Option<f64>, + /// 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<String>, - - /// The speed to set mpv to - #[arg(short, long)] - speed: Option<f64>, }, /// Mark the video given by the hash to be dropped |