diff options
author | 2016-12-16 15:26:27 +0100 | |
---|---|---|
committer | 2016-12-16 15:26:27 +0100 | |
commit | 1edc5d1bebfd4156b0b58d693f0431d17f20a508 (patch) | |
tree | 98b65248db1c78bfd989b10c0427ec231ebe7f0a /InputEventManager/src | |
parent | 88c577e3981f71f5d0aa88bcf095734855f66d06 (diff) |
Add command line parameter mechanism
This will get handy as soon as needed.
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'InputEventManager/src')
-rw-r--r-- | InputEventManager/src/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/InputEventManager/src/main.cpp b/InputEventManager/src/main.cpp index b609693..afd36d7 100644 --- a/InputEventManager/src/main.cpp +++ b/InputEventManager/src/main.cpp @@ -15,19 +15,23 @@ */ #include <QCoreApplication> +#include <QCommandLineParser> #include "inputeventmanager.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - // used for application settings (QSettings) QCoreApplication::setOrganizationDomain("LinuxFoundation"); QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); QCoreApplication::setApplicationName("InputEventManager"); - QCoreApplication::setApplicationVersion("0.4.0"); + QCoreApplication::setApplicationVersion("0.7.0"); - qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str()); + QCommandLineParser parser; + parser.setApplicationDescription("AGL InputEventManager - see wwww... for more details"); + parser.addHelpOption(); + parser.addVersionOption(); + parser.process(a); InputEventManager *inputEventManager = new InputEventManager(); |