We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4879a02 commit 4848750Copy full SHA for 4848750
src/main.rs
@@ -38,7 +38,10 @@ fn main() {
38
)
39
.get_matches();
40
41
- let config_files = matches.values_of_lossy("config").unwrap_or(vec![]);
+ let config_files: Vec<String> = match matches.get_many::<String>("config") {
42
+ None => vec![],
43
+ Some(v) => v.cloned().collect(),
44
+ };
45
let config = config::Configuration::get(config_files).expect("read configuration error");
46
let log_level =
47
log::Level::from_str(&config.udp_forwarder.log_level).expect("parse log_level error");
0 commit comments