This commit is contained in:
Bryan Ndjeutcha 2021-05-27 10:29:39 -04:00
parent 63352f9da6
commit 21df59e00b

View File

@ -96,12 +96,12 @@ fn main() {
"--tag" | "-t" => enable_tag = true, "--tag" | "-t" => enable_tag = true,
"--view-tags" | "-vt" => enable_views_tag = true, "--view-tags" | "-vt" => enable_views_tag = true,
"--help" | "-h" | "--h" => { "--help" | "-h" | "--h" => {
println!("Usage: status [option]\n"); print!("Usage: ristate [option]\n\n");
println!(" --monitor | -m <uint> : select the monitor"); print!(" --monitor | -m <uint> : select the monitor\n");
println!(" --seat | -s <string> : select the seat"); print!(" --seat | -s <string> : select the seat\n");
println!(" --tag | -t : displays the focused tag"); print!(" --tag | -t : displays the focused tag\n");
println!(" --view-tags | -vt : displays the tag of all views"); print!(" --view-tags | -vt : displays the tag of all views\n");
println!(" --window-title | -w : displays the title of the focused view"); println!(" --window-title | -w : displays the title of the focused view\n");
std::process::exit(0); std::process::exit(0);
} }
_ => break, _ => break,
@ -216,7 +216,7 @@ fn main() {
); );
}) })
.unwrap(); .unwrap();
if enable_views_tag || enable_tag || enable_title { config.to_string(); } config.to_string()
} }
} }