summaryrefslogtreecommitdiffstats
path: root/src/sdk/commandlineinterface.cpp
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-03-13 16:16:52 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-03-19 12:31:46 +0200
commit559a6b4ed5b23fee084929f9f62fabe223294f49 (patch)
tree863a38c697a5e59805cb076a21aa95fa01c3a858 /src/sdk/commandlineinterface.cpp
parent8878f49cc00a5dcd0a8acd89cd5c9d8b89505941 (diff)
Add short versions of CLI options
Add single or couple letter short options and two letter short commands. Single letter short options can be passed in a single joined form, for instance '-dg'. Also change CLI options constant string literals type to QLatin1String as we would have to use this as a wrapper anyway wherever the constants would be used, causing quite long and verbose statements. Task-number: QTIFW-1634 Change-Id: I17e80c9a657d934687d2b7e87fcecddffa1b9b21 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/sdk/commandlineinterface.cpp')
-rw-r--r--src/sdk/commandlineinterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdk/commandlineinterface.cpp b/src/sdk/commandlineinterface.cpp
index c5b829084..17e7be6e5 100644
--- a/src/sdk/commandlineinterface.cpp
+++ b/src/sdk/commandlineinterface.cpp
@@ -187,8 +187,8 @@ bool CommandLineInterface::checkLicense()
bool CommandLineInterface::setTargetDir()
{
QString targetDir;
- if (m_parser.isSet(QLatin1String(CommandLineOptions::Root))) {
- targetDir = m_parser.value(QLatin1String(CommandLineOptions::Root));
+ if (m_parser.isSet(CommandLineOptions::scRootLong)) {
+ targetDir = m_parser.value(CommandLineOptions::scRootLong);
} else {
targetDir = m_core->value(QLatin1String("TargetDir"));
qCDebug(QInstaller::lcInstallerInstallLog) << "No target directory specified, using default value:" << targetDir;