From fb6806c11c840acb6ceb7189086c944840308640 Mon Sep 17 00:00:00 2001 From: murilo ijanc Date: Thu, 20 Nov 2025 17:22:22 -0300 Subject: Show long version in short version --- cli/template/src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cli/template') 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 )] -- cgit v1.2.3