General clean up
* Option changed: --debug-icons -> --debug-modules
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -26,13 +26,14 @@ struct CommandlineArgs {
|
||||
#[arg(short = 'p', long)]
|
||||
music_progress: bool,
|
||||
|
||||
/// Show JSON data returned by query
|
||||
/// Show verbose debug information during run
|
||||
#[arg(short = 'D', long)]
|
||||
debug: bool,
|
||||
|
||||
/// Show ICON debug information
|
||||
#[arg(short = 'I', long)]
|
||||
debug_icons: bool,
|
||||
/// Show module debug information after all modules are evaluated
|
||||
/// but before output is printed
|
||||
#[arg(short = 'M', long)]
|
||||
debug_modules: bool,
|
||||
}
|
||||
|
||||
//
|
||||
@@ -80,7 +81,7 @@ impl Unibar {
|
||||
}
|
||||
|
||||
// Show module debug information if enabled
|
||||
if self.opts.debug_icons {
|
||||
if self.opts.debug_modules {
|
||||
let bar_modules_debugged: Vec<Box<dyn bar_modules::BarModuleDebug>> = vec! [
|
||||
Box::new(bar_modules::bar_module_weather::UnibarModuleWeather::new(self.opts.clone())),
|
||||
Box::new(bar_modules::bar_module_music::UnibarModuleMusic::new(self.opts.clone())),
|
||||
@@ -125,7 +126,7 @@ fn main() {
|
||||
weather_station: cmd_args.weather_station,
|
||||
music_progress: cmd_args.music_progress,
|
||||
debug: cmd_args.debug,
|
||||
debug_icons: cmd_args.debug_icons
|
||||
debug_modules: cmd_args.debug_modules
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user