From c50b7424ba000f805a721a092ebd58e5e5720a50 Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Tue, 27 Oct 2020 13:08:26 +0200 Subject: 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 Reviewed-by: Iikka Eklund --- src/libs/installer/commandlineparser.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/libs') 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 - \n") + + indent + QString::fromLatin1("%1, %2 - install default or selected packages - \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 - \n") + + indent + QString::fromLatin1("%1, %2 - update all or selected packages - \n") .arg(CommandLineOptions::scUpdateShort, CommandLineOptions::scUpdateLong) - + QString::fromLatin1("\t%1, %2 - uninstall packages and their child components - \n") + + indent + QString::fromLatin1("%1, %2 - uninstall packages and their child components - \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 - \n") + + indent + QString::fromLatin1("%1, %2 - search available packages - \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); -- cgit v1.2.3