Skip to content

Commit

Permalink
Merge pull request #15 from torkelrogstad/2024-04-06-doc
Browse files Browse the repository at this point in the history
zsided: include mainhost and mainport in help output
  • Loading branch information
psztorc authored Apr 6, 2024
2 parents c39fcc4 + d7eaccf commit 8ba48d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bool AppInit(int argc, char* argv[])
// Process help and version before taking care about datadir
if (mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version"))
{
std::string strUsage = _("Zcash Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();
std::string strUsage = _("Zcash Sidechain Daemon") + " " + _("version") + " " + FormatFullVersion() + "\n" + PrivacyInfo();

if (mapArgs.count("-version"))
{
Expand Down
5 changes: 5 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ std::string HelpMessage(HelpMessageMode mode)

std::string strUsage = HelpMessageGroup(_("Options:"));
strUsage += HelpMessageOpt("-?", _("This help message"));

// Mainchain connection options
strUsage += HelpMessageOpt("-mainhost=<host>", "Host to connect to mainchain node on (default: localhost)");
strUsage += HelpMessageOpt("-mainport=<port>", strprintf("Port to connect to mainchain node on (default: %d)", DEFAULT_MAIN_PORT));

strUsage += HelpMessageOpt("-alerts", strprintf(_("Receive and display P2P network alerts (default: %u)"), DEFAULT_ALERTS));
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)"));
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()));
Expand Down

0 comments on commit 8ba48d3

Please sign in to comment.