Clap update

This commit is contained in:
Frank Denis 2022-01-03 10:15:15 +01:00
parent 2efc655a6f
commit a2fa341679
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ authors = ["Frank Denis <github@pureftpd.org>"]
edition = "2018"
[dependencies]
clap = "2"
clap = { version = "3.0.0", features = ["std", "cargo", "wrap_help"] }
flate2 = "1"
horrorshow = "0.8"
hyper = "0.10"

View File

@ -38,8 +38,8 @@ fn update_asns(asns_arc: &Arc<RwLock<Arc<ASNs>>>, db_url: &str) {
fn main() {
let matches = app_from_crate!()
.arg(
Arg::with_name("listen_addr")
.short("l")
Arg::new("listen_addr")
.short('l')
.long("listen")
.value_name("ip:port")
.help("Webservice IP and port")
@ -47,8 +47,8 @@ fn main() {
.default_value("0.0.0.0:53661"),
)
.arg(
Arg::with_name("db_url")
.short("u")
Arg::new("db_url")
.short('u')
.long("dburl")
.value_name("url")
.help("URL of the gzipped database")