Fix syntax examples for z_importwallet and export

This commit is contained in:
Maxwell Gubler
2018-02-20 16:46:12 -05:00
parent 1ddecf644f
commit f70cd24521
2 changed files with 8 additions and 8 deletions

View File

@@ -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): 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. 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: To import keys into a wallet which were previously exported to a file, use:
`zcash-cli z_importwallet </path/to/exportdir/nameofbackup>` `zcash-cli z_importwallet <path/to/exportdir/nameofbackup>`
### Using `z_exportkey`, `z_importkey`, `dumpprivkey` & `importprivkey` ### Using `z_exportkey`, `z_importkey`, `dumpprivkey` & `importprivkey`

View File

@@ -234,11 +234,11 @@ UniValue z_importwallet(const UniValue& params, bool fHelp)
"1. \"filename\" (string, required) The wallet file\n" "1. \"filename\" (string, required) The wallet file\n"
"\nExamples:\n" "\nExamples:\n"
"\nDump the wallet\n" "\nDump the wallet\n"
+ HelpExampleCli("z_exportwallet", "\"test\"") + + HelpExampleCli("z_exportwallet", "\"nameofbackup\"") +
"\nImport the wallet\n" "\nImport the wallet\n"
+ HelpExampleCli("z_importwallet", "\"test\"") + + HelpExampleCli("z_importwallet", "\"path/to/exportdir/nameofbackup\"") +
"\nImport using the json rpc call\n" "\nImport using the json rpc call\n"
+ HelpExampleRpc("z_importwallet", "\"test\"") + HelpExampleRpc("z_importwallet", "\"path/to/exportdir/nameofbackup\"")
); );
return importwallet_impl(params, fHelp, true); 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" "1. \"filename\" (string, required) The wallet file\n"
"\nExamples:\n" "\nExamples:\n"
"\nDump the wallet\n" "\nDump the wallet\n"
+ HelpExampleCli("dumpwallet", "\"test\"") + + HelpExampleCli("dumpwallet", "\"nameofbackup\"") +
"\nImport the wallet\n" "\nImport the wallet\n"
+ HelpExampleCli("importwallet", "\"test\"") + + HelpExampleCli("importwallet", "\"path/to/exportdir/nameofbackup\"") +
"\nImport using the json rpc call\n" "\nImport using the json rpc call\n"
+ HelpExampleRpc("importwallet", "\"test\"") + HelpExampleRpc("importwallet", "\"path/to/exportdir/nameofbackup\"")
); );
return importwallet_impl(params, fHelp, false); return importwallet_impl(params, fHelp, false);