diff options
| author | murilo ijanc | 2025-11-20 17:22:22 -0300 |
|---|---|---|
| committer | murilo ijanc | 2025-11-20 17:22:22 -0300 |
| commit | fb6806c11c840acb6ceb7189086c944840308640 (patch) | |
| tree | 3bc5913033fd7ec6f5a9bdf83e8c0090a35d987e | |
| parent | 3d3c4f205c7eb49a4dbe1e26ff8354b918fae9f0 (diff) | |
| download | templates-fb6806c11c840acb6ceb7189086c944840308640.tar.gz | |
Show long version in short version
| -rw-r--r-- | cli/template/src/main.rs | 7 |
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 )] |