From 2fd17e51868b5f25e888b6aee1c1f56f3fbec40b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 22 Aug 2024 14:23:38 +0200 Subject: feat(select/file): Allow `--priority` argument to all functions This allows setting a priority even on picked videos. --- src/cli.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index a61a57e..34a98a6 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -197,6 +197,10 @@ pub enum SubscriptionCommand { #[command(infer_subcommands = true)] /// Mark the video given by the hash to be watched pub struct SharedSelectionCommandArgs { + /// The ordering priority (higher means more at the top) + #[arg(short, long)] + pub priority: Option, + /// The short extractor hash pub hash: LazyExtractorHash, @@ -226,15 +230,12 @@ pub enum SelectCommand { #[command(flatten)] shared: SharedSelectionCommandArgs, - /// The ordering priority (higher means more at the top) - #[arg(short, long)] - priority: Option, - /// The subtitles to download (e.g. 'en,de,sv') #[arg(short = 'l', long, default_value = constants::DEFAULT_SUBTITLE_LANGS)] subtitle_langs: String, /// The speed to set mpv to + // NOTE: KEEP THIS IN SYNC WITH THE `DEFAULT_MPV_PLAYBACK_SPEED` in `constants.rs` <2024-08-20> #[arg(short, long, default_value = "2.7")] speed: f64, }, -- cgit 1.4.1