Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { | ||||
strUsage += FormatParagraph(LicenseInfo()); | strUsage += FormatParagraph(LicenseInfo()); | ||||
} else { | } else { | ||||
strUsage += "\nUsage: bitcoind [options] " | strUsage += "\nUsage: bitcoind [options] " | ||||
"Start " PACKAGE_NAME " Daemon\n"; | "Start " PACKAGE_NAME " Daemon\n"; | ||||
strUsage += "\n" + gArgs.GetHelpMessage(); | strUsage += "\n" + gArgs.GetHelpMessage(); | ||||
} | } | ||||
tfm::format(std::cout, "%s", strUsage.c_str()); | tfm::format(std::cout, "%s", strUsage); | ||||
return true; | return true; | ||||
} | } | ||||
try { | try { | ||||
if (!CheckDataDirOption()) { | if (!CheckDataDirOption()) { | ||||
return InitError( | return InitError( | ||||
strprintf("Specified data directory \"%s\" does not exist.\n", | strprintf("Specified data directory \"%s\" does not exist.\n", | ||||
gArgs.GetArg("-datadir", ""))); | gArgs.GetArg("-datadir", ""))); | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |