From 21df59e00bab5840a4522758dc0c22dfc1875fa7 Mon Sep 17 00:00:00 2001 From: Bryan Ndjeutcha Date: Thu, 27 May 2021 10:29:39 -0400 Subject: [PATCH] fixes --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5f452c7..82c4673 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,12 +96,12 @@ fn main() { "--tag" | "-t" => enable_tag = true, "--view-tags" | "-vt" => enable_views_tag = true, "--help" | "-h" | "--h" => { - println!("Usage: status [option]\n"); - println!(" --monitor | -m : select the monitor"); - println!(" --seat | -s : select the seat"); - println!(" --tag | -t : displays the focused tag"); - println!(" --view-tags | -vt : displays the tag of all views"); - println!(" --window-title | -w : displays the title of the focused view"); + print!("Usage: ristate [option]\n\n"); + print!(" --monitor | -m : select the monitor\n"); + print!(" --seat | -s : select the seat\n"); + print!(" --tag | -t : displays the focused tag\n"); + print!(" --view-tags | -vt : displays the tag of all views\n"); + println!(" --window-title | -w : displays the title of the focused view\n"); std::process::exit(0); } _ => break, @@ -216,7 +216,7 @@ fn main() { ); }) .unwrap(); - if enable_views_tag || enable_tag || enable_title { config.to_string(); } + config.to_string() } }