Skip to content

Commit

Permalink
fix help typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Chen authored and Richard Chen committed Aug 30, 2018
1 parent e717251 commit dc644e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/CmdHelp.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| dumpwallet | ```<filename>``` | Dumps all wallet keys in a human-readable format.And write to ```<filename>``` | Y | | dumpwallet | ```<filename>``` | Dumps all wallet keys in a human-readable format.And write to ```<filename>``` | Y |
| dumpprivkey | ```<dacrsaddress>``` | Reveals the private key corresponding to ```<dacrsaddress>``` | Y | | dumpprivkey | ```<dacrsaddress>``` | Reveals the private key corresponding to ```<dacrsaddress>``` | Y |
| encryptwallet | ```<passphrase>``` | Encrypts the wallet with ```<passphrase>``` | N | | encryptwallet | ```<passphrase>``` | Encrypts the wallet with ```<passphrase>``` | N |
| generateblock | ```<address>``` | cteate a block with the appointed address | N | | generateblock | ```<address>``` | create a block with the appointed address | N |
| getaccountinfo | ```<address>``` | Returns the account information with the given address | N | | getaccountinfo | ```<address>``` | Returns the account information with the given address | N |
| getaddednodeinfo | ```<dns>``` [node] | Returns information about the given added node, or all added nodes. <br>(note that onetry addnodes are not listed here) If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available. | N | | getaddednodeinfo | ```<dns>``` [node] | Returns information about the given added node, or all added nodes. <br>(note that onetry addnodes are not listed here) If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available. | N |
| getappaccinfo | ```<scriptid><address>``` | get appaccount info | N | | getappaccinfo | ```<scriptid><address>``` | get appaccount info | N |
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/rpcserver.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ json_spirit::Value CRPCTable::execute(const string &strMethod, const json_spirit
} }


string HelpExampleCli(string methodname, string args){ string HelpExampleCli(string methodname, string args){
return "> Dacrsd " + methodname + " " + args + "\n"; return "> ./waykicoind " + methodname + " " + args + "\n";
} }


string HelpExampleRpc(string methodname, string args){ string HelpExampleRpc(string methodname, string args){
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/rpctx.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ Value getaddrbalance(const Array& params, bool fHelp) {
Value generateblock(const Array& params, bool fHelp) { Value generateblock(const Array& params, bool fHelp) {
if (fHelp || params.size() != 1) { if (fHelp || params.size() != 1) {
throw runtime_error("generateblock \"addr\"\n" throw runtime_error("generateblock \"addr\"\n"
"\ncteate a block with the appointed address\n" "\ncreate a block with the appointed address\n"
"\nArguments:\n" "\nArguments:\n"
"1.\"addr\": (string, required)\n" "1.\"addr\": (string, required)\n"
"\nResult:\n" "\nResult:\n"
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/rpcwallet.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Value getnewaddress(const Array& params, bool fHelp)
"getnewaddress (\"IsMiner\")\n" "getnewaddress (\"IsMiner\")\n"
"\nget a new address\n" "\nget a new address\n"
"\nArguments:\n" "\nArguments:\n"
"1. \"IsMiner\" (bool, optional) private key Is used for miner if true will create tow key ,another for miner.\n" "1. \"IsMiner\" (bool, optional) private key is used for miner if true will create two key ,another for miner.\n"
"\nExamples:\n" "\nExamples:\n"
+ HelpExampleCli("getnewaddress", "") + HelpExampleCli("getnewaddress", "")
+ HelpExampleCli("getnewaddress", "true") + HelpExampleCli("getnewaddress", "true")
Expand Down

0 comments on commit dc644e0

Please sign in to comment.