Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
std::string error; | std::string error; | ||||
if (!args.ParseParameters(argc, argv, error)) { | if (!args.ParseParameters(argc, argv, error)) { | ||||
return InitError(Untranslated( | return InitError(Untranslated( | ||||
strprintf("Error parsing command line arguments: %s\n", error))); | strprintf("Error parsing command line arguments: %s\n", error))); | ||||
} | } | ||||
// Process help and version before taking care about datadir | // Process help and version before taking care about datadir | ||||
if (HelpRequested(args) || args.IsArgSet("-version")) { | if (HelpRequested(args) || args.IsArgSet("-version")) { | ||||
std::string strUsage = PACKAGE_NAME " version " + FormatFullVersion() + | std::string strUsage = | ||||
" (" + NETWORK_NAME + " network)\n"; | PACKAGE_NAME " version " + FormatFullVersion() + "\n"; | ||||
if (args.IsArgSet("-version")) { | if (args.IsArgSet("-version")) { | ||||
strUsage += FormatParagraph(LicenseInfo()) + "\n"; | strUsage += FormatParagraph(LicenseInfo()) + "\n"; | ||||
} else { | } else { | ||||
strUsage += "\nUsage: bitcoind [options] " | strUsage += "\nUsage: bitcoind [options] " | ||||
"Start " PACKAGE_NAME "\n"; | "Start " PACKAGE_NAME "\n"; | ||||
strUsage += "\n" + args.GetHelpMessage(); | strUsage += "\n" + args.GetHelpMessage(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |