Add a 'verbose' flag.

This commit is contained in:
JoelKatz
2012-07-13 10:34:51 -07:00
parent db2e9f83dd
commit 92dce90b90

View File

@@ -89,6 +89,7 @@ int main(int argc, char* argv[])
("rpc", "Perform rpc command (default).")
("test,t", "Perform unit tests.")
("parameters", po::value< vector<string> >(), "Specify comma separated parameters.")
("verbose,v", "Increase log level")
;
// Interpret positional arguments as --parameters.
@@ -130,6 +131,11 @@ int main(int argc, char* argv[])
}
}
if (vm.count("verbose"))
{
Log::setMinSeverity(lsTRACE);
}
if (!iResult)
{
theConfig.setup(vm.count("conf") ? vm["conf"].as<std::string>() : "");