fix: use the version environment variable properly

This commit is contained in:
Tobias Berger 2024-02-05 21:31:18 +01:00
parent aca045a558
commit 9a98ba676e
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -42,7 +42,7 @@ impl Error for RunError {}
fn main() -> Result<(), RunError> {
for argument in std::env::args() {
if argument == "-v" || argument == "--version" {
println!("CARGO_PKG_VERSION");
println!(env!("CARGO_PKG_VERSION"));
return Ok(());
}
}