From fed0007da5c259488b4fca6a9f923b31a370af51 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 25 Jul 2023 11:33:39 +0200 Subject: [PATCH] Reinsert the config arg Unbreak passing `-c/--config`. --- dht-config/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dht-config/src/lib.rs b/dht-config/src/lib.rs index 6399080..21c60d5 100644 --- a/dht-config/src/lib.rs +++ b/dht-config/src/lib.rs @@ -192,7 +192,9 @@ where cmd = cmd.mut_arg(key, |a| a.default_value(val).required(false)) } - let matches = cmd.get_matches(); + let matches = cmd + .arg(Arg::new("config").short('c').long("config")) + .get_matches(); ::from_arg_matches(&matches).expect("Internal error parsing matches") }