summaryrefslogtreecommitdiff
path: root/resourceqt-client/commandlineparser.cpp
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:54:37 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:54:37 +0200
commit25e8d19e13b0fe85a1233c650f36b9527c641560 (patch)
treebdcf3961e8e271f39d04dfceda18aa75ae85dcf4 /resourceqt-client/commandlineparser.cpp
parent2527f203a61103fa2c681156f328a196f264e1f6 (diff)
downloadlibresourceqt-25e8d19e13b0fe85a1233c650f36b9527c641560.tar.gz
Added support for -v flag to turn on debugging
Diffstat (limited to 'resourceqt-client/commandlineparser.cpp')
-rw-r--r--resourceqt-client/commandlineparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/resourceqt-client/commandlineparser.cpp b/resourceqt-client/commandlineparser.cpp
index 2e1a7ce..f169801 100644
--- a/resourceqt-client/commandlineparser.cpp
+++ b/resourceqt-client/commandlineparser.cpp
@@ -22,6 +22,8 @@ USA.
#include <QDebug>
#include "commandlineparser.h"
+extern bool verbose;
+
QHash<QString, ResourcePolicy::ResourceType> CommandLineParser::resourceValues;
CommandLineParser::CommandLineParser():
@@ -77,6 +79,9 @@ bool CommandLineParser::parseArguments()
case 'u':
allowUnkownResourceClass = true;
break;
+ case 'v':
+ verbose = true;
+ break;
case 'h':
default:
usage();