summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-10-27 13:08:26 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-11-03 14:38:58 +0000
commitc50b7424ba000f805a721a092ebd58e5e5720a50 (patch)
treee16703c3359f4b0dc55c2e05a3b16e62a68128d7 /src/libs
parent6264882398534b35aef081d52a7d974f98b48101 (diff)
CLI: Minor cleanup for commands help text
Instead of using tabs for indentation, use the same two whitespaces as with options. Use the same format for package list arguments as in documentation. Change-Id: Id5a7d1e6bdbea6a49c560cdadb2fe3ef5793d04a Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/commandlineparser.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/libs/installer/commandlineparser.cpp b/src/libs/installer/commandlineparser.cpp
index 24c771269..74f0b5b3e 100644
--- a/src/libs/installer/commandlineparser.cpp
+++ b/src/libs/installer/commandlineparser.cpp
@@ -42,23 +42,24 @@ static const QLatin1String scInstallerValue("InstallerValue");
CommandLineParser::CommandLineParser()
: d(new CommandLineParserPrivate())
{
+ static const QLatin1String indent(" ");
static const QString preformatted = QLatin1String("\nQt Installer Framework supports both GUI and "
"headless mode. The installation operations can be invoked with the following commands and "
"options. Note that the options marked with \"CLI\" are available in the headless mode only.\n")
+ QLatin1String("\nCommands:\n")
- + QString::fromLatin1("\t%1, %2 - install default or selected packages - <pkg1 pkg2 pkg3...>\n")
+ + indent + QString::fromLatin1("%1, %2 - install default or selected packages - <pkg ...>\n")
.arg(CommandLineOptions::scInstallShort, CommandLineOptions::scInstallLong)
- + QString::fromLatin1("\t%1, %2 - show available updates information on maintenance tool\n")
+ + indent + QString::fromLatin1("%1, %2 - show available updates information on maintenance tool\n")
.arg(CommandLineOptions::scCheckUpdatesShort, CommandLineOptions::scCheckUpdatesLong)
- + QString::fromLatin1("\t%1, %2 - update all or selected packages - <pkg1 pkg2 pkg3...>\n")
+ + indent + QString::fromLatin1("%1, %2 - update all or selected packages - <pkg ...>\n")
.arg(CommandLineOptions::scUpdateShort, CommandLineOptions::scUpdateLong)
- + QString::fromLatin1("\t%1, %2 - uninstall packages and their child components - <pkg1 pkg2 pkg3...>\n")
+ + indent + QString::fromLatin1("%1, %2 - uninstall packages and their child components - <pkg ...>\n")
.arg(CommandLineOptions::scRemoveShort, CommandLineOptions::scRemoveLong)
- + QString::fromLatin1("\t%1, %2 - list currently installed packages\n")
+ + indent + QString::fromLatin1("%1, %2 - list currently installed packages\n")
.arg(CommandLineOptions::scListShort, CommandLineOptions::scListLong)
- + QString::fromLatin1("\t%1, %2 - search available packages - <regexp>\n")
+ + indent + QString::fromLatin1("%1, %2 - search available packages - <regexp>\n")
.arg(CommandLineOptions::scSearchShort, CommandLineOptions::scSearchLong)
- + QString::fromLatin1("\t%1, %2 - uninstall all packages and remove entire program directory")
+ + indent + QString::fromLatin1("%1, %2 - uninstall all packages and remove entire program directory")
.arg(CommandLineOptions::scPurgeShort, CommandLineOptions::scPurgeLong);
m_parser.setApplicationDescription(preformatted);