better mimick dwm on version, also tested

This commit is contained in:
Zynh0722 2024-01-31 16:26:46 -08:00
parent df25227db5
commit 33deea91aa

View file

@ -31,7 +31,7 @@ fn main() -> anyhow::Result<()> {
if arg != "-v" {
return Err(anyhow!("usage: rswm [-v]"));
} else {
println!(env!("CARGO_PKG_VERSION")); // TODO: test this
println!("rswm-{}", env!("CARGO_PKG_VERSION"));
return Ok(());
}
}