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

This commit is contained in:
Yeastplume 2019-07-02 16:02:57 +01:00 committed by GitHub
parent e6bdc5987c
commit b377d4cb4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -70,7 +70,9 @@ fn main() {
fn real_main() -> i32 {
let yml = load_yaml!("grin.yml");
let args = App::from_yaml(yml).get_matches();
let args = App::from_yaml(yml)
.version(built_info::PKG_VERSION)
.get_matches();
let node_config;
// Temporary wallet warning message

View file

@ -1,5 +1,4 @@
name: grin
version: "2.0.1-beta.1"
about: Lightweight implementation of the MimbleWimble protocol.
author: The Grin Team