Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { | ||||
strUsage += "\n" + gArgs.GetHelpMessage(); | strUsage += "\n" + gArgs.GetHelpMessage(); | ||||
} | } | ||||
tfm::format(std::cout, "%s", strUsage.c_str()); | tfm::format(std::cout, "%s", strUsage.c_str()); | ||||
return true; | return true; | ||||
} | } | ||||
try { | try { | ||||
if (!fs::is_directory(GetDataDir(false))) { | 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", ""))); | ||||
} | } | ||||
if (!gArgs.ReadConfigFiles(error, true)) { | if (!gArgs.ReadConfigFiles(error, true)) { | ||||
return InitError( | return InitError( | ||||
strprintf("Error reading configuration file: %s\n", error)); | strprintf("Error reading configuration file: %s\n", error)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |