Skip to content

Commit d7eaccf

Browse files
committed
zsided: include mainhost and mainport in help output
1 parent c39fcc4 commit d7eaccf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/bitcoind.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool AppInit(int argc, char* argv[])
8080
// Process help and version before taking care about datadir
8181
if (mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version"))
8282
{
83-
std::string strUsage = _("Zcash Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
83+
std::string strUsage = _("Zcash Sidechain Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
8484

8585
if (mapArgs.count("-version"))
8686
{

src/init.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ std::string HelpMessage(HelpMessageMode mode)
334334

335335
std::string strUsage = HelpMessageGroup(_("Options:"));
336336
strUsage += HelpMessageOpt("-?", _("This help message"));
337+
338+
// Mainchain connection options
339+
strUsage += HelpMessageOpt("-mainhost=<host>", "Host to connect to mainchain node on (default: localhost)");
340+
strUsage += HelpMessageOpt("-mainport=<port>", strprintf("Port to connect to mainchain node on (default: %d)", DEFAULT_MAIN_PORT));
341+
337342
strUsage += HelpMessageOpt("-alerts", strprintf(_("Receive and display P2P network alerts (default: %u)"), DEFAULT_ALERTS));
338343
strUsage += HelpMessageOpt("-alertnotify=<cmd>", _("Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)"));
339344
strUsage += HelpMessageOpt("-allowdeprecated=<feature>", strprintf(_("Explicitly allow the use of the specified deprecated feature. Multiple instances of this parameter are permitted; values for <feature> must be selected from among {%s}"), GetAllowableDeprecatedFeatures()));

0 commit comments

Comments
 (0)