Skip to content

Commit 7ecbc1b

Browse files
committed
Reinsert the config arg
Unbreak passing `-c/--config`.
1 parent 970606e commit 7ecbc1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dht-config/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ where
192192
cmd = cmd.mut_arg(key, |a| a.default_value(val).required(false))
193193
}
194194

195-
let matches = cmd.get_matches();
195+
let matches = cmd
196+
.arg(Arg::new("config").short('c').long("config"))
197+
.get_matches();
196198

197199
<T as FromArgMatches>::from_arg_matches(&matches).expect("Internal error parsing matches")
198200
}

0 commit comments

Comments
 (0)