aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreen/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'HomeScreen/src/main.cpp')
-rw-r--r--HomeScreen/src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp
index dcad4c6..0eaae7e 100644
--- a/HomeScreen/src/main.cpp
+++ b/HomeScreen/src/main.cpp
@@ -15,6 +15,7 @@
*/
#include <QGuiApplication>
+#include <QCommandLineParser>
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlContext>
@@ -30,13 +31,16 @@ int main(int argc, char *argv[])
{
QGuiApplication a(argc, argv);
- // used for application settings (QSettings)
QCoreApplication::setOrganizationDomain("LinuxFoundation");
QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
QCoreApplication::setApplicationName("HomeScreen");
QCoreApplication::setApplicationVersion("0.7.0");
- qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str());
+ QCommandLineParser parser;
+ parser.setApplicationDescription("AGL HomeScreen - see wwww... for more details");
+ parser.addHelpOption();
+ parser.addVersionOption();
+ parser.process(a);
qDBusRegisterMetaType<AppInfo>();
qDBusRegisterMetaType<QList<AppInfo> >();