From f7b56430ea2422f5e95d72d62d0ae971f4d39187 Mon Sep 17 00:00:00 2001 From: Jacek Czaja Date: Mon, 16 Jan 2023 10:56:45 +0100 Subject: [PATCH] - Versioning --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7346bf5..c485191 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,9 +26,11 @@ fn create_cmd_line_pattern<'a, 'b>(myapp: App<'a, 'b>) -> App<'a, 'b> { } fn main() { + const VERSION: &str = env!("CARGO_PKG_VERSION"); logging::init_logging_infrastructure(); - let myapp = App::new("E-trade tax helper").setting(AppSettings::ArgRequiredElseHelp); + let myapp = App::new("etradeTaxHelper ".to_string() + VERSION) + .setting(AppSettings::ArgRequiredElseHelp); let matches = create_cmd_line_pattern(myapp).get_matches(); log::info!("Started etradeTaxHelper");