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:24:17 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:45:25 +0200
commit4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf (patch)
tree57340831cbb5d2f1842cf5c8a7c8fad4a00ba29d /src/cli.rs
parentfix(contrib/config.toml): Correct typo in config key (diff)
downloadyt-4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf.tar.gz
yt-4eeb519ae5398b5b5f5c7d9938e3887cac2c9faf.zip
feat(videos): Allow limiting the number of videos to show
Diffstat (limited to '')
-rw-r--r--src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 4e64657..3b13bdf 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -139,6 +139,10 @@ pub enum VideosCommand {
         /// An optional search query to limit the results
         #[arg(action = ArgAction::Append)]
         search_query: Option<String>,
+
+        /// The number of videos to show
+        #[arg(short, long)]
+        limit: Option<usize>,
     },
 
     /// Get detailed information about a video