From ea9953283b07462861498805433deb239a134cb4 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Thu, 18 Apr 2019 10:37:19 +0100 Subject: [PATCH] Add helpful information if user tries to run wallet command (#2759) * Add warning message if user tries to run wallet command * rustfmt --- src/bin/grin.rs | 14 ++++++++++++++ src/bin/grin.yml | 3 +++ 2 files changed, 17 insertions(+) diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 775baded00..cee066a6cb 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -73,6 +73,20 @@ fn real_main() -> i32 { let args = App::from_yaml(yml).get_matches(); let node_config; + // Temporary wallet warning message + match args.subcommand() { + ("wallet", _) => { + println!(); + println!("As of v1.1.0, the wallet has been split into a seperate executable."); + println!( + "Please visit https://github.com/mimblewinble/grin-wallet/releases to download" + ); + println!(); + return 0; + } + _ => {} + } + let chain_type = if args.is_present("floonet") { global::ChainTypes::Floonet } else if args.is_present("usernet") { diff --git a/src/bin/grin.yml b/src/bin/grin.yml index 45b7b9e6e6..9180a73d9f 100644 --- a/src/bin/grin.yml +++ b/src/bin/grin.yml @@ -13,6 +13,9 @@ args: long: usernet takes_value: false subcommands: + - wallet: + about: As of v1.1.0, the wallet has been split into a separate executable. See https://github.com/mimblewimble/grin-wallet/releases + usage: As of v1.1.0, the wallet has been split into a separate executable. See https://github.com/mimblewimble/grin-wallet/releases to download - server: about: Control the Grin server args: