Skip to content

Commit

Permalink
Reinsert the config arg
Browse files Browse the repository at this point in the history
Unbreak passing `-c/--config`.
  • Loading branch information
lu-zero committed Jul 25, 2023
1 parent 284e00e commit fed0007
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dht-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

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

0 comments on commit fed0007

Please sign in to comment.