aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurilo ijanc2025-11-20 17:22:22 -0300
committermurilo ijanc2025-11-20 17:22:22 -0300
commitfb6806c11c840acb6ceb7189086c944840308640 (patch)
tree3bc5913033fd7ec6f5a9bdf83e8c0090a35d987e
parent3d3c4f205c7eb49a4dbe1e26ff8354b918fae9f0 (diff)
downloadtemplates-fb6806c11c840acb6ceb7189086c944840308640.tar.gz
Show long version in short version
-rw-r--r--cli/template/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/template/src/main.rs b/cli/template/src/main.rs
index 575cc3d..9eb456f 100644
--- a/cli/template/src/main.rs
+++ b/cli/template/src/main.rs
@@ -18,9 +18,7 @@ use anyhow::Result;
use clap::{ArgAction, Parser};
use log::{LevelFilter, info, debug};
-const LONG_VERSION: &str = concat!(
- env!("CARGO_PKG_NAME"),
- " ",
+const VERSION: &str = concat!(
env!("CARGO_PKG_VERSION"),
" (",
env!("GIT_HASH", "unknown"),
@@ -33,8 +31,7 @@ const LONG_VERSION: &str = concat!(
#[command(
name = "{{project-name}}",
about = "{{project-description}}",
- version = env!("CARGO_PKG_VERSION"),
- long_version = LONG_VERSION,
+ version = VERSION,
author,
propagate_version = true
)]