mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Sanitize this.
This commit is contained in:
@@ -105,15 +105,6 @@ int main(int argc, char* argv[])
|
|||||||
("net", "Get the initial ledger from the network.")
|
("net", "Get the initial ledger from the network.")
|
||||||
;
|
;
|
||||||
|
|
||||||
po::options_description hidden("Hidden Options");
|
|
||||||
hidden.add_options()
|
|
||||||
("trace,vvv", "Trace level logging")
|
|
||||||
("debug,vv", "Debug level logging")
|
|
||||||
;
|
|
||||||
|
|
||||||
po::options_description all("All Options");
|
|
||||||
all.add(desc).add(hidden);
|
|
||||||
|
|
||||||
// Interpret positional arguments as --parameters.
|
// Interpret positional arguments as --parameters.
|
||||||
po::positional_options_description p;
|
po::positional_options_description p;
|
||||||
p.add("parameters", -1);
|
p.add("parameters", -1);
|
||||||
@@ -138,7 +129,7 @@ int main(int argc, char* argv[])
|
|||||||
// Parse options, if no error.
|
// Parse options, if no error.
|
||||||
try {
|
try {
|
||||||
po::store(po::command_line_parser(argc, argv)
|
po::store(po::command_line_parser(argc, argv)
|
||||||
.options(all) // Parse options.
|
.options(desc) // Parse options.
|
||||||
.positional(p) // Remainder as --parameters.
|
.positional(p) // Remainder as --parameters.
|
||||||
.run(),
|
.run(),
|
||||||
vm);
|
vm);
|
||||||
@@ -150,14 +141,12 @@ int main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vm.count("trace"))
|
if (vm.count("quiet"))
|
||||||
Log::setMinSeverity(lsTRACE, true);
|
Log::setMinSeverity(lsFATAL, true);
|
||||||
else if (vm.count("debug"))
|
|
||||||
Log::setMinSeverity(lsDEBUG, true);
|
|
||||||
else if (vm.count("verbose"))
|
else if (vm.count("verbose"))
|
||||||
Log::setMinSeverity(lsINFO, true);
|
Log::setMinSeverity(lsTRACE, true);
|
||||||
else
|
else
|
||||||
Log::setMinSeverity(lsWARNING, true);
|
Log::setMinSeverity(lsINFO, true);
|
||||||
|
|
||||||
InstanceType::multiThread();
|
InstanceType::multiThread();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user