fix: use the version environment variable properly
This commit is contained in:
parent
aca045a558
commit
9a98ba676e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ impl Error for RunError {}
|
||||||
fn main() -> Result<(), RunError> {
|
fn main() -> Result<(), RunError> {
|
||||||
for argument in std::env::args() {
|
for argument in std::env::args() {
|
||||||
if argument == "-v" || argument == "--version" {
|
if argument == "-v" || argument == "--version" {
|
||||||
println!("CARGO_PKG_VERSION");
|
println!(env!("CARGO_PKG_VERSION"));
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue