Clap update
This commit is contained in:
parent
2efc655a6f
commit
a2fa341679
|
@ -10,7 +10,7 @@ authors = ["Frank Denis <github@pureftpd.org>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2"
|
clap = { version = "3.0.0", features = ["std", "cargo", "wrap_help"] }
|
||||||
flate2 = "1"
|
flate2 = "1"
|
||||||
horrorshow = "0.8"
|
horrorshow = "0.8"
|
||||||
hyper = "0.10"
|
hyper = "0.10"
|
||||||
|
|
|
@ -38,8 +38,8 @@ fn update_asns(asns_arc: &Arc<RwLock<Arc<ASNs>>>, db_url: &str) {
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = app_from_crate!()
|
let matches = app_from_crate!()
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("listen_addr")
|
Arg::new("listen_addr")
|
||||||
.short("l")
|
.short('l')
|
||||||
.long("listen")
|
.long("listen")
|
||||||
.value_name("ip:port")
|
.value_name("ip:port")
|
||||||
.help("Webservice IP and port")
|
.help("Webservice IP and port")
|
||||||
|
@ -47,8 +47,8 @@ fn main() {
|
||||||
.default_value("0.0.0.0:53661"),
|
.default_value("0.0.0.0:53661"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("db_url")
|
Arg::new("db_url")
|
||||||
.short("u")
|
.short('u')
|
||||||
.long("dburl")
|
.long("dburl")
|
||||||
.value_name("url")
|
.value_name("url")
|
||||||
.help("URL of the gzipped database")
|
.help("URL of the gzipped database")
|
||||||
|
|
Loading…
Reference in New Issue