diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-01-22 11:53:21 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-01-22 14:45:32 +0100 |
commit | 89f9a09ff33239562163aab11c1a51f2ffadf90c (patch) | |
tree | fb871ad9552d2e95b5fae520de18d03a35fb2744 /src/app/shared | |
parent | 4121e8a7da2ce7ec6ba38e2d31f14fdb07e8eb13 (diff) |
Support "--help" option in all tools.
This is needed to incorporate the tool-specific help into "qbs help".
Change-Id: Ie6e05f86f417b354beb24e270f837fd159014a3f
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/shared')
-rw-r--r-- | src/app/shared/specialplatformssetup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/shared/specialplatformssetup.cpp b/src/app/shared/specialplatformssetup.cpp index 0f3f5d80f..409cbd5a9 100644 --- a/src/app/shared/specialplatformssetup.cpp +++ b/src/app/shared/specialplatformssetup.cpp @@ -58,14 +58,14 @@ void SpecialPlatformsSetup::setup() QString SpecialPlatformsSetup::helpString() const { - return tr("This tool sets up qbs platform definitions for all installed " - "targets in a given %1 installation.\n").arg(platformTypeName()) + usageString(); + return tr("This tool sets up a qbs profile for each installed " + "target in a given %1 installation.\n").arg(platformTypeName()) + usageString(); } QString SpecialPlatformsSetup::usageString() const { - QString s = tr("Usage: ") + QCoreApplication::applicationFilePath() + ' ' - + tr("[-h|<base directory>]"); + QString s = tr("Usage: %1 [-h|<base directory>]") + .arg(QFileInfo(QCoreApplication::applicationFilePath()).fileName()); const QString &defaultDir = defaultBaseDirectory(); if (!defaultDir.isEmpty() == 1) s += QLatin1Char('\n') + tr("The default base directory is '%1'.").arg(defaultDir); |