Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
bool fRet = false; | bool fRet = false; | ||||
// | // | ||||
// 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 | |||||
gArgs.AddArg("-daemon", | |||||
"Run in the background as a daemon and accept commands", false, | |||||
OptionsCategory::OPTIONS); | |||||
#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; | ||||
} | } | ||||
// Process help and version before taking care about datadir | // Process help and version before taking care about datadir | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |