Skip to content

Commit

Permalink
Merge pull request #49 from jczaja/jczaja/versioning
Browse files Browse the repository at this point in the history
Versioning printed in help
  • Loading branch information
jczaja authored Jan 16, 2023
2 parents 3a3e74b + f7b5643 commit 532c816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 532c816

Please sign in to comment.