aboutsummaryrefslogtreecommitdiffstats
path: root/InputEventManager/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InputEventManager/src/main.cpp')
-rw-r--r--InputEventManager/src/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/InputEventManager/src/main.cpp b/InputEventManager/src/main.cpp
index afd36d7..a85a2d3 100644
--- a/InputEventManager/src/main.cpp
+++ b/InputEventManager/src/main.cpp
@@ -18,6 +18,10 @@
#include <QCommandLineParser>
#include "inputeventmanager.h"
+void noOutput(QtMsgType, const QMessageLogContext &, const QString &)
+{
+}
+
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
@@ -31,8 +35,16 @@ int main(int argc, char *argv[])
parser.setApplicationDescription("AGL InputEventManager - see wwww... for more details");
parser.addHelpOption();
parser.addVersionOption();
+ QCommandLineOption quietOption(QStringList() << "q" << "quiet",
+ QCoreApplication::translate("main", "Be quiet. No outputs."));
+ parser.addOption(quietOption);
parser.process(a);
+ if (parser.isSet(quietOption))
+ {
+ qInstallMessageHandler(noOutput);
+ }
+
InputEventManager *inputEventManager = new InputEventManager();
return a.exec();