summaryrefslogtreecommitdiffhomepage
path: root/mullvad_daemon/src/cli.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-07-13 17:01:53 +0200
committerLinus Färnstrand <linus@mullvad.net>2017-07-13 17:01:53 +0200
commitd091ffbc99dbbdb168f32141c89d0738cda22fa1 (patch)
tree5655796117b80a4f8c23bd89cba344d71ef1f427 /mullvad_daemon/src/cli.rs
parent21d5c0c0cde79e2f04572042373190338d9ab738 (diff)
downloadmullvadvpn-d091ffbc99dbbdb168f32141c89d0738cda22fa1.tar.xz
mullvadvpn-d091ffbc99dbbdb168f32141c89d0738cda22fa1.zip
rustfmt
Diffstat (limited to 'mullvad_daemon/src/cli.rs')
-rw-r--r--mullvad_daemon/src/cli.rs22
1 files changed, 13 insertions, 9 deletions
diff --git a/mullvad_daemon/src/cli.rs b/mullvad_daemon/src/cli.rs
index 0d879de64d..670a2bf28b 100644
--- a/mullvad_daemon/src/cli.rs
+++ b/mullvad_daemon/src/cli.rs
@@ -11,7 +11,7 @@ pub struct Config {
pub fn get_config() -> Config {
let app = create_app();
let matches = app.get_matches();
-
+
let log_level = match matches.occurrences_of("v") {
0 => log::LogLevelFilter::Info,
1 => log::LogLevelFilter::Debug,
@@ -30,12 +30,16 @@ fn create_app() -> App<'static, 'static> {
.version(crate_version!())
.author(crate_authors!())
.about(crate_description!())
- .arg(Arg::with_name("v")
- .short("v")
- .multiple(true)
- .help("Sets the level of verbosity."))
- .arg(Arg::with_name("log_file")
- .long("log")
- .takes_value(true)
- .help("Activates file logging to the given path"))
+ .arg(
+ Arg::with_name("v")
+ .short("v")
+ .multiple(true)
+ .help("Sets the level of verbosity."),
+ )
+ .arg(
+ Arg::with_name("log_file")
+ .long("log")
+ .takes_value(true)
+ .help("Activates file logging to the given path"),
+ )
}