Skip to content

Commit

Permalink
Derive --version output dynamically from cargo package version (#2937)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume authored Jul 2, 2019
1 parent e6bdc59 commit b377d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/bin/grin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/bin/grin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: grin
version: "2.0.1-beta.1"
about: Lightweight implementation of the MimbleWimble protocol.
author: The Grin Team

Expand Down

0 comments on commit b377d4c

Please sign in to comment.