happy path first
parent
f8b1ed2ef1
commit
d0a3b5dd64
|
@ -29,12 +29,12 @@ fn become_wm<C: Connection>(conn: &C, screen: &Screen) -> anyhow::Result<()> {
|
||||||
fn handle_args() {
|
fn handle_args() {
|
||||||
let mut args = std::env::args().skip(1);
|
let mut args = std::env::args().skip(1);
|
||||||
if let Some(arg) = args.next() {
|
if let Some(arg) = args.next() {
|
||||||
if arg != "-v" {
|
if arg == "-v" {
|
||||||
eprintln!("usage: rswm [-v]");
|
|
||||||
exit(1);
|
|
||||||
} else {
|
|
||||||
println!("rswm-{}", env!("CARGO_PKG_VERSION"));
|
println!("rswm-{}", env!("CARGO_PKG_VERSION"));
|
||||||
exit(0);
|
exit(0);
|
||||||
|
} else {
|
||||||
|
eprintln!("usage: rswm [-v]");
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue