From 21dd3d53770f301353f124a8271ae96ab761ba93 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Tue, 2 Jul 2019 10:24:17 +0100 Subject: [PATCH] Derive --version output dynamically from cargo package version (#174) --- src/bin/grin-wallet.rs | 4 +++- src/bin/grin-wallet.yml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/grin-wallet.rs b/src/bin/grin-wallet.rs index 5f31dd73..62da7aee 100644 --- a/src/bin/grin-wallet.rs +++ b/src/bin/grin-wallet.rs @@ -67,7 +67,9 @@ fn main() { fn real_main() -> i32 { let yml = load_yaml!("grin-wallet.yml"); - let args = App::from_yaml(yml).get_matches(); + let args = App::from_yaml(yml) + .version(built_info::PKG_VERSION) + .get_matches(); let chain_type = if args.is_present("floonet") { global::ChainTypes::Floonet diff --git a/src/bin/grin-wallet.yml b/src/bin/grin-wallet.yml index 4dfd1d0a..77c8a56f 100644 --- a/src/bin/grin-wallet.yml +++ b/src/bin/grin-wallet.yml @@ -1,5 +1,4 @@ name: grin-wallet -version: "2.0.0-beta.2" about: Reference Grin Wallet author: The Grin Team