summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
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!())