From 92dce90b904ae01781179c413824c8d305d83a02 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 13 Jul 2012 10:34:51 -0700 Subject: [PATCH] Add a 'verbose' flag. --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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() : "");