summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 131eb41..71a2b67 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -365,6 +365,25 @@ pub fn cli<'a>() -> App<'a> {
.arg(arg_older_than_date("List only releases older than DATE"))
.arg(arg_newer_than_date("List only releases newer than DATE"))
+
+ .arg(Arg::new("package_name_regex")
+ .required(false)
+ .multiple(false)
+ .long("pkg")
+ .short('p')
+ .takes_value(true)
+ .value_name("REGEX")
+ .about("Limit search with package name matching REGEX")
+ )
+ .arg(Arg::new("package_version_constraint")
+ .required(false)
+ .multiple(false)
+ .long("version")
+ .short('v')
+ .takes_value(true)
+ .value_name("VERSION_CONSTRAINT")
+ .about("Limit search for package in version VERSION")
+ )
)
)