mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Derive --version output dynamically from cargo package version (#174)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user