about summary refs log tree commit diff stats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:37:17 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:45:31 +0200
commitb0ba7c7d5329148495d9a676c3314a9a35e4ca18 (patch)
tree732f955ea0d5399f4cf20166171615728d237a0a /src/cli.rs
parentfix(cli/selectCommand): Explicitly set the aliases (diff)
downloadyt-b0ba7c7d5329148495d9a676c3314a9a35e4ca18.tar.gz
yt-b0ba7c7d5329148495d9a676c3314a9a35e4ca18.zip
feat(cli/selectCommand/file): Allow re-use of the previous selection file
Diffstat (limited to '')
-rw-r--r--src/cli.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 895cfc0..42b6378 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -227,6 +227,10 @@ pub enum SelectCommand {
         /// Include done (watched, dropped) videos
         #[arg(long, short)]
         done: bool,
+
+        /// Use the last selection file (useful if you've spend time on it and want to get it again)
+        #[arg(long, short, conflicts_with = "done")]
+        use_last_selection: bool,
     },
 
     /// Mark the video given by the hash to be watched
@@ -266,7 +270,10 @@ pub enum SelectCommand {
 }
 impl Default for SelectCommand {
     fn default() -> Self {
-        Self::File { done: false }
+        Self::File {
+            done: false,
+            use_last_selection: false,
+        }
     }
 }