|
|
@ -23,9 +23,7 @@ std::string HelpMessageCli() |
|
|
|
strUsage += HelpMessageOpt("-?", _("This help message")); |
|
|
|
strUsage += HelpMessageOpt("-?", _("This help message")); |
|
|
|
strUsage += HelpMessageOpt("-conf=<file>", strprintf(_("Specify configuration file (default: %s)"), "bitcoin.conf")); |
|
|
|
strUsage += HelpMessageOpt("-conf=<file>", strprintf(_("Specify configuration file (default: %s)"), "bitcoin.conf")); |
|
|
|
strUsage += HelpMessageOpt("-datadir=<dir>", _("Specify data directory")); |
|
|
|
strUsage += HelpMessageOpt("-datadir=<dir>", _("Specify data directory")); |
|
|
|
strUsage += HelpMessageOpt("-testnet", _("Use the test network")); |
|
|
|
AppendParamsHelpMessages(strUsage); |
|
|
|
strUsage += HelpMessageOpt("-regtest", _("Enter regression test mode, which uses a special chain in which blocks can be " |
|
|
|
|
|
|
|
"solved instantly. This is intended for regression testing tools and app development.")); |
|
|
|
|
|
|
|
strUsage += HelpMessageOpt("-rpcconnect=<ip>", strprintf(_("Send commands to node running on <ip> (default: %s)"), "127.0.0.1")); |
|
|
|
strUsage += HelpMessageOpt("-rpcconnect=<ip>", strprintf(_("Send commands to node running on <ip> (default: %s)"), "127.0.0.1")); |
|
|
|
strUsage += HelpMessageOpt("-rpcport=<port>", strprintf(_("Connect to JSON-RPC on <port> (default: %u or testnet: %u)"), 8332, 18332)); |
|
|
|
strUsage += HelpMessageOpt("-rpcport=<port>", strprintf(_("Connect to JSON-RPC on <port> (default: %u or testnet: %u)"), 8332, 18332)); |
|
|
|
strUsage += HelpMessageOpt("-rpcwait", _("Wait for RPC server to start")); |
|
|
|
strUsage += HelpMessageOpt("-rpcwait", _("Wait for RPC server to start")); |
|
|
@ -88,8 +86,10 @@ static bool AppInitRPC(int argc, char* argv[]) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
// Check for -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
|
|
|
|
// Check for -testnet or -regtest parameter (BaseParams() calls are only valid after this clause)
|
|
|
|
if (!SelectBaseParamsFromCommandLine()) { |
|
|
|
try { |
|
|
|
fprintf(stderr, "Error: Invalid combination of -regtest and -testnet.\n"); |
|
|
|
SelectBaseParams(ChainNameFromCommandLine()); |
|
|
|
|
|
|
|
} catch(std::exception &e) { |
|
|
|
|
|
|
|
fprintf(stderr, "Error: %s\n", e.what()); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|