diff --git a/src/main.cpp b/src/main.cpp index 75832a912b..ea262f02c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -89,6 +89,7 @@ int main(int argc, char* argv[]) ("rpc", "Perform rpc command (default).") ("test,t", "Perform unit tests.") ("parameters", po::value< vector >(), "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() : "");