MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / HelpMessageCli

Function HelpMessageCli

src/rpc/core/rpcclient.cpp:369–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369string HelpMessageCli(bool mainProgram)
370{
371 string strUsage;
372 if (mainProgram) {
373 strUsage += _("Options:") + "\n";
374 strUsage += " -? " + _("This help message") + "\n";
375 strUsage += " -conf=<file> " + _("Specify configuration file (default: ") + IniCfg().GetCoinName() + ".conf)" + "\n";
376 strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
377 strUsage += " -nettype=<network> " + _("Specify network type: main/test/regtest (default: main)") + "\n";
378 } else {
379 strUsage += _("RPC client options:") + "\n";
380 }
381
382 strUsage += " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n";
383 strUsage += " -rpcport=<port> " + _("Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)") + "\n";
384 strUsage += " -rpcwait " + _("Wait for RPC server to start") + "\n";
385
386 if (mainProgram) {
387 strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n";
388 strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n";
389
390 strUsage += "\n" + _("SSL options: (see the coin Wiki for SSL setup instructions)") + "\n";
391 strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n";
392 }
393
394 return strUsage;
395}

Callers 3

AppInitFunction · 0.85
AppInitRPCFunction · 0.85
AppInitFunction · 0.85

Calls 2

_Function · 0.85
GetCoinNameMethod · 0.80

Tested by 1

AppInitFunction · 0.68