diff options
Diffstat (limited to 'src/sdk/main.cpp')
-rw-r--r-- | src/sdk/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sdk/main.cpp b/src/sdk/main.cpp index 10b827e9e..0dc9dcdb0 100644 --- a/src/sdk/main.cpp +++ b/src/sdk/main.cpp @@ -86,7 +86,10 @@ int main(int argc, char *argv[]) const bool help = parser.isSet(QLatin1String(CommandLineOptions::HelpShort)) || parser.isSet(QLatin1String(CommandLineOptions::HelpLong)); - if (help || parser.isSet(QLatin1String(CommandLineOptions::Version)) || mutually.count()) { + if (help + || parser.isSet(QLatin1String(CommandLineOptions::Version)) + || parser.isSet(QLatin1String(CommandLineOptions::FrameworkVersion)) + || mutually.count()) { Console c; QCoreApplication app(argc, argv); @@ -99,6 +102,11 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } + if (parser.isSet(QLatin1String(CommandLineOptions::FrameworkVersion))) { + std::cout << QUOTE(IFW_VERSION) << std::endl; + return EXIT_SUCCESS; + } + if (mutually.count() > 1) { std::cerr << qPrintable(QString::fromLatin1("The following options are mutually " "exclusive: %1.").arg(mutually.join(QLatin1String(", ")))) << std::endl; |