Derive --version output dynamically from cargo package version (#174)

This commit is contained in:
Yeastplume 2019-07-02 10:24:17 +01:00 committed by GitHub
parent f7c17c4ba9
commit 21dd3d5377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -1,5 +1,4 @@
name: grin-wallet
version: "2.0.0-beta.2"
about: Reference Grin Wallet
author: The Grin Team