| From aa42cf4390d663901d5afbb5fd026b5c093d25b9 Mon Sep 17 00:00:00 2001 |
| From: Ray Donnelly <mingw.android@gmail.com> |
| Date: Thu, 25 Jun 2015 10:49:42 +0100 |
| Subject: [PATCH 9/9] Add explicit '--platform' commandline option |
| |
| To prevent 'Unknown option: platform' when running |
| in headless mode (--platform minimal) |
| --- |
| src/sdk/commandlineparser.cpp | 4 ++++ |
| 1 files changed, 4 insertions(+) |
| |
| diff --git a/src/sdk/commandlineparser.cpp b/src/sdk/commandlineparser.cpp |
| index 6da3188..a3b6d33 100644 |
| --- a/src/sdk/commandlineparser.cpp |
| +++ b/src/sdk/commandlineparser.cpp |
| @@ -115,6 +115,10 @@ CommandLineParser::CommandLineParser() |
| "not started by the client application in that case, you need to start it on your own."), |
| QLatin1String("socketname,key"))); |
| |
| + m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::Platform), |
| + QLatin1String("Use specified platform plugin. The 'minimal' platform plugin can be used " |
| + "to run in headless mode."), QLatin1String("platform-plugin"))); |
| + |
| m_parser.addPositionalArgument(QLatin1String(CommandLineOptions::KeyValue), |
| QLatin1String("Key Value pair to be set.")); |
| } |
| -- |
| 2.7.0 |
| |