From 55c2f2c446f06587697297decba8c4d062950b58 Mon Sep 17 00:00:00 2001 From: Adrian Filip Date: Fri, 16 Feb 2024 00:54:30 +0200 Subject: [PATCH] update --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c334b86..8f6f106 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ enum Command { } #[derive(Parser, Debug)] -#[command(author, version=env!("VERSION"), about, long_about, rename_all = "kebab-case")] +#[command(author, version=option_env!("VERSION").unwrap_or(env!("CARGO_PKG_VERSION")), about, long_about, rename_all = "kebab-case")] /// Command line interface for OSS version of Golem. /// /// For Golem Cloud client see golem-cloud-cli instead: https://github.com/golemcloud/golem-cloud-cli