aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 30ad0da4..532c46cd 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -27,7 +27,7 @@ pub struct Options {
pub ref_test: bool,
pub dimensions: Option<Dimensions>,
pub title: String,
- pub log_level: log::LogLevelFilter,
+ pub log_level: log::LevelFilter,
pub command: Option<Shell<'static>>,
pub working_dir: Option<PathBuf>,
pub config: Option<PathBuf>,
@@ -41,7 +41,7 @@ impl Default for Options {
ref_test: false,
dimensions: None,
title: DEFAULT_TITLE.to_owned(),
- log_level: log::LogLevelFilter::Warn,
+ log_level: log::LevelFilter::Warn,
command: None,
working_dir: None,
config: None,
@@ -138,15 +138,15 @@ impl Options {
match matches.occurrences_of("q") {
0 => {},
- 1 => options.log_level = log::LogLevelFilter::Error,
- 2 | _ => options.log_level = log::LogLevelFilter::Off
+ 1 => options.log_level = log::LevelFilter::Error,
+ 2 | _ => options.log_level = log::LevelFilter::Off
}
match matches.occurrences_of("v") {
0 => {},
- 1 => options.log_level = log::LogLevelFilter::Info,
- 2 => options.log_level = log::LogLevelFilter::Debug,
- 3 | _ => options.log_level = log::LogLevelFilter::Trace
+ 1 => options.log_level = log::LevelFilter::Info,
+ 2 => options.log_level = log::LevelFilter::Debug,
+ 3 | _ => options.log_level = log::LevelFilter::Trace
}
if let Some(dir) = matches.value_of("working-directory") {