From f70cd24521f5fb3b5ce75df6bb41e28cdd629750 Mon Sep 17 00:00:00 2001 From: Maxwell Gubler Date: Tue, 20 Feb 2018 16:46:12 -0500 Subject: [PATCH] Fix syntax examples for z_importwallet and export --- doc/wallet-backup.md | 4 ++-- src/wallet/rpcdump.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/wallet-backup.md b/doc/wallet-backup.md index 9f7bc0f40..02454db72 100644 --- a/doc/wallet-backup.md +++ b/doc/wallet-backup.md @@ -18,7 +18,7 @@ There are multiple ways to make sure you have at least one other copy of the pri For all methods, you will need to include an export directory setting in your config file (`zcash.conf` located in the data directory which is `~/.zcash/` unless it's been overridden with `datadir=` setting): -`exportdir=/path/to/chosen/export/directory` +`exportdir=path/to/chosen/export/directory` You may chose any directory within the home directory as the location for export & backup files. If the directory doesn't exist, it will be created. @@ -46,7 +46,7 @@ This will generate a file in the export directory listing all transparent and sh To import keys into a wallet which were previously exported to a file, use: -`zcash-cli z_importwallet ` +`zcash-cli z_importwallet ` ### Using `z_exportkey`, `z_importkey`, `dumpprivkey` & `importprivkey` diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 1177cfc4e..890a91e8d 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -234,11 +234,11 @@ UniValue z_importwallet(const UniValue& params, bool fHelp) "1. \"filename\" (string, required) The wallet file\n" "\nExamples:\n" "\nDump the wallet\n" - + HelpExampleCli("z_exportwallet", "\"test\"") + + + HelpExampleCli("z_exportwallet", "\"nameofbackup\"") + "\nImport the wallet\n" - + HelpExampleCli("z_importwallet", "\"test\"") + + + HelpExampleCli("z_importwallet", "\"path/to/exportdir/nameofbackup\"") + "\nImport using the json rpc call\n" - + HelpExampleRpc("z_importwallet", "\"test\"") + + HelpExampleRpc("z_importwallet", "\"path/to/exportdir/nameofbackup\"") ); return importwallet_impl(params, fHelp, true); @@ -257,11 +257,11 @@ UniValue importwallet(const UniValue& params, bool fHelp) "1. \"filename\" (string, required) The wallet file\n" "\nExamples:\n" "\nDump the wallet\n" - + HelpExampleCli("dumpwallet", "\"test\"") + + + HelpExampleCli("dumpwallet", "\"nameofbackup\"") + "\nImport the wallet\n" - + HelpExampleCli("importwallet", "\"test\"") + + + HelpExampleCli("importwallet", "\"path/to/exportdir/nameofbackup\"") + "\nImport using the json rpc call\n" - + HelpExampleRpc("importwallet", "\"test\"") + + HelpExampleRpc("importwallet", "\"path/to/exportdir/nameofbackup\"") ); return importwallet_impl(params, fHelp, false);