summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-11-11 14:31:52 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-11-11 14:44:07 +0100
commit1d375742d76ae7be79cabb485f1f1e551112ce2d (patch)
tree0fe046af2fdabef732dee9dd7a4d9222c27b5bff /src/cli.rs
parent492be316c4dde88e3b9ae08810074a2d0c0e5c27 (diff)
Add support for timeout in source download subcommand
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 4821886..07c0f9c 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -894,6 +894,15 @@ pub fn cli<'a>() -> App<'a> {
.args(&["package_name", "matching"])
.required(true)
)
+
+ .arg(Arg::new("timeout")
+ .required(false)
+ .multiple(false)
+ .long("timeout")
+ .takes_value(true)
+ .value_name("TIMEOUT")
+ .about("Set timeout for download in seconds")
+ )
)
.subcommand(App::new("of")
.version(crate_version!())