Skip to content

Commit

Permalink
Add helpful information if user tries to run wallet command (#2759)
Browse files Browse the repository at this point in the history
* Add warning message if user tries to run wallet command

* rustfmt
  • Loading branch information
yeastplume authored Apr 18, 2019
1 parent b403ccb commit ea99532
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/bin/grin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"

This comment has been minimized.

Copy link
@DanielWeigl

DanielWeigl May 3, 2019

@yeastplume Typo in URL mimblewinble - just to be sure, ive created an empty github organization with this name, so nobody can place a fraudulent repo under this URL

This comment has been minimized.

Copy link
@antiochp

antiochp May 3, 2019

Member

Good catch. Thanks!
Fixed here - #2802

);
println!();
return 0;
}
_ => {}
}

let chain_type = if args.is_present("floonet") {
global::ChainTypes::Floonet
} else if args.is_present("usernet") {
Expand Down
3 changes: 3 additions & 0 deletions src/bin/grin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea99532

Please sign in to comment.