prometheus_wireguard_exporter/src/options.rs

13 lines
248 B
Rust
Raw Normal View History

2019-04-23 23:06:35 +02:00
#[derive(Debug, Clone)]
pub(crate) struct Options {
pub verbose: bool,
}
impl Options {
pub fn from_claps(matches: &clap::ArgMatches<'_>) -> Options {
Options {
verbose: matches.is_present("verbose"),
}
}
}