Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
// | // | ||||
// Parameters | // Parameters | ||||
// | // | ||||
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | // If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | ||||
// main() | // main() | ||||
SetupServerArgs(); | SetupServerArgs(); | ||||
#if HAVE_DECL_DAEMON | #if HAVE_DECL_DAEMON | ||||
gArgs.AddArg("-daemon", | gArgs.AddArg("-daemon", | ||||
_("Run in the background as a daemon and accept commands"), | "Run in the background as a daemon and accept commands", false, | ||||
false, OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
#endif | #endif | ||||
std::string error; | std::string error; | ||||
if (!gArgs.ParseParameters(argc, argv, error)) { | if (!gArgs.ParseParameters(argc, argv, error)) { | ||||
fprintf(stderr, "Error parsing command line arguments: %s\n", | fprintf(stderr, "Error parsing command line arguments: %s\n", | ||||
error.c_str()); | error.c_str()); | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |