Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-wallet.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | if (argc < 2 || HelpRequested(gArgs)) { | ||||
tfm::format(std::cout, "%s", usage.c_str()); | tfm::format(std::cout, "%s", usage.c_str()); | ||||
return false; | return false; | ||||
} | } | ||||
// check for printtoconsole, allow -debug | // check for printtoconsole, allow -debug | ||||
LogInstance().m_print_to_console = | LogInstance().m_print_to_console = | ||||
gArgs.GetBoolArg("-printtoconsole", gArgs.GetBoolArg("-debug", false)); | gArgs.GetBoolArg("-printtoconsole", gArgs.GetBoolArg("-debug", false)); | ||||
if (!fs::is_directory(GetDataDir(false))) { | if (!CheckDataDirOption()) { | ||||
tfm::format(std::cerr, | tfm::format(std::cerr, | ||||
"Error: Specified data directory \"%s\" does not exist.\n", | "Error: Specified data directory \"%s\" does not exist.\n", | ||||
gArgs.GetArg("-datadir", "").c_str()); | gArgs.GetArg("-datadir", "").c_str()); | ||||
return false; | return false; | ||||
} | } | ||||
// Check for -testnet or -regtest parameter (Params() calls are only valid | // Check for -testnet or -regtest parameter (Params() calls are only valid | ||||
// after this clause) | // after this clause) | ||||
SelectParams(gArgs.GetChainName()); | SelectParams(gArgs.GetChainName()); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |