summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-08-17 12:21:58 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-08-17 12:21:58 +0200
commit8466ab659f3461430bbf09d26a863b35a6492889 (patch)
treea38d5bdad7f736b8bc75931f26436bd9068c325b /src/cli.rs
parent76e6562ead14963c77117f750305db5a74cf3958 (diff)
parent7b32e20b96758f9e65cf78443520890214fdc2cb (diff)
Merge branch 'download-multi'
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 0da6745..2f58a6d 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -841,6 +841,20 @@ pub fn cli<'a>() -> App<'a> {
.long("force")
.about("Overwrite existing cache entry")
)
+
+ .arg(Arg::new("matching")
+ .required(false)
+ .multiple(false)
+ .long("matching")
+ .takes_value(true)
+ .value_name("REGEX")
+ .about("Download all packages matching a regex with their name")
+ )
+
+ .group(ArgGroup::new("download-one-or-many")
+ .args(&["package_name", "matching"])
+ .required(true)
+ )
)
.subcommand(App::new("of")
.version(crate_version!())