about summary refs log tree commit diff stats
path: root/yt/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yt/src/cli.rs')
-rw-r--r--yt/src/cli.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/yt/src/cli.rs b/yt/src/cli.rs
index 5e7af5b..b110772 100644
--- a/yt/src/cli.rs
+++ b/yt/src/cli.rs
@@ -277,8 +277,22 @@ pub enum SelectCommand {
     },
 
     /// Add a video to the database
+    ///
+    /// This optionally supports to add a playlist.
+    /// When a playlist is added, the `start` and `stop` arguments can be used to select which
+    /// playlist entries to include.
     #[command(visible_alias = "a")]
-    Add { urls: Vec<Url> },
+    Add {
+        urls: Vec<Url>,
+
+        /// Start adding playlist entries at this playlist index (zero based and inclusive)
+        #[arg(short = 's', long)]
+        start: Option<usize>,
+
+        /// Stop adding playlist entries at this playlist index (zero based and inclusive)
+        #[arg(short = 'e', long)]
+        stop: Option<usize>,
+    },
 
     /// Mark the video given by the hash to be watched
     #[command(visible_alias = "w")]