diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-10-23 12:39:16 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-10-28 15:52:22 +0100 |
commit | 3d5e24dad65a853a6b8db0f0168a50f7aede8184 (patch) | |
tree | cfe393d6389a609028c91d10c33b500c9640cfe0 /src/sdk/commandlineparser.cpp | |
parent | 67ddd6b22bd26293b6c487420be7062789b4301d (diff) |
Add --framework-version argument
This prints the version number of the Qt Installer Framework. In contrast
to the more verbose '--version' argument it can be used safely by
other applications to check for the version.
Also, we might at one point decide to give the IFW user control of the
--version output: He might want to run his own version scheme to also
take into account the packaged content.
Change-Id: Ia609310659ac45c5acffe318ecb6480eeb419ee8
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/sdk/commandlineparser.cpp')
-rw-r--r-- | src/sdk/commandlineparser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdk/commandlineparser.cpp b/src/sdk/commandlineparser.cpp index 4dedb82a0..1a242bdda 100644 --- a/src/sdk/commandlineparser.cpp +++ b/src/sdk/commandlineparser.cpp @@ -47,6 +47,9 @@ CommandLineParser::CommandLineParser() m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::Version), QLatin1String("Displays version information."))); + m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::FrameworkVersion), + QLatin1String("Displays the version of the Qt Installer Framework."))); + m_parser.addOption(QCommandLineOption(QStringList() << QLatin1String(CommandLineOptions::VerboseShort) << QLatin1String(CommandLineOptions::VerboseLong), |