mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-01-20 19:11:09 +03:00
Derive --version output dynamically from cargo package version (#174)
This commit is contained in:
parent
f7c17c4ba9
commit
21dd3d5377
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
name: grin-wallet
|
||||
version: "2.0.0-beta.2"
|
||||
about: Reference Grin Wallet
|
||||
author: The Grin Team
|
||||
|
||||
|
|
Loading…
Reference in a new issue