mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Add helpful information if user tries to run wallet command (#2759)
* Add warning message if user tries to run wallet command * rustfmt
This commit is contained in:
parent
b403ccbeb1
commit
ea9953283b
2 changed files with 17 additions and 0 deletions
|
@ -73,6 +73,20 @@ fn real_main() -> i32 {
|
||||||
let args = App::from_yaml(yml).get_matches();
|
let args = App::from_yaml(yml).get_matches();
|
||||||
let node_config;
|
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") {
|
let chain_type = if args.is_present("floonet") {
|
||||||
global::ChainTypes::Floonet
|
global::ChainTypes::Floonet
|
||||||
} else if args.is_present("usernet") {
|
} else if args.is_present("usernet") {
|
||||||
|
|
|
@ -13,6 +13,9 @@ args:
|
||||||
long: usernet
|
long: usernet
|
||||||
takes_value: false
|
takes_value: false
|
||||||
subcommands:
|
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:
|
- server:
|
||||||
about: Control the Grin server
|
about: Control the Grin server
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in a new issue