diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-03 00:08:09 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-03 00:08:09 -0500 |
commit | 9cad3bb4ec87f1ec99245427cb4445324c25e364 (patch) | |
tree | e20393f51c98f0d37f703f1f62ec55597bc076d5 /src/options.rs | |
parent | 808fe4deb1d6bae58d04fb06d9b5244e5bda8d22 (diff) |
Add basic flag to sample config, also fixed incorrect flag name for configs.
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.rs b/src/options.rs index d67e5ce7..fc92a915 100644 --- a/src/options.rs +++ b/src/options.rs @@ -26,7 +26,7 @@ pub struct ConfigFlags { pub regex: Option<bool>, pub default_widget: Option<String>, pub show_disabled_data: Option<bool>, - pub basic_mode: Option<bool>, + pub basic: Option<bool>, //disabled_cpu_cores: Option<Vec<u64>>, // TODO: [FEATURE] Enable disabling cores in config/flags } @@ -176,8 +176,8 @@ pub fn get_use_basic_mode_option(matches: &clap::ArgMatches<'static>, config: &C if matches.is_present("BASIC_MODE") { return true; } else if let Some(flags) = &config.flags { - if let Some(basic_mode) = flags.basic_mode { - return basic_mode; + if let Some(basic) = flags.basic { + return basic; } } |