Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | try { | ||||
fprintf(stderr, "Error: %s\n", e.what()); | fprintf(stderr, "Error: %s\n", e.what()); | ||||
return false; | return false; | ||||
} | } | ||||
// Error out when loose non-argument tokens are encountered on command | // Error out when loose non-argument tokens are encountered on command | ||||
// line | // line | ||||
for (int i = 1; i < argc; i++) { | for (int i = 1; i < argc; i++) { | ||||
if (!IsSwitchChar(argv[i][0])) { | if (!IsSwitchChar(argv[i][0])) { | ||||
fprintf(stderr, "Error: Command line contains unexpected token " | fprintf(stderr, | ||||
"'%s', see bitcoind -h for a list of " | "Error: Command line contains unexpected token '%s', " | ||||
"options.\n", | "see bitcoind -h for a list of options.\n", | ||||
argv[i]); | argv[i]); | ||||
exit(EXIT_FAILURE); | exit(EXIT_FAILURE); | ||||
} | } | ||||
} | } | ||||
// -server defaults to true for bitcoind but not for the GUI so do this | // -server defaults to true for bitcoind but not for the GUI so do this | ||||
// here | // here | ||||
gArgs.SoftSetBoolArg("-server", true); | gArgs.SoftSetBoolArg("-server", true); | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |