Fix help string printing (#1289)

This commit is contained in:
Boyuan Yang
2021-02-08 10:36:49 -05:00
committed by GitHub
parent c63b161025
commit a03c60107c

View File

@@ -335,8 +335,8 @@ void CommandLineParser::printHelp(QStringList args, const Node* node)
}
QString argText =
node->subNodes.isEmpty() ? "" : "[" + QObject::tr("arguments") + "]";
helpText += QObject::tr("Usage") + ": %1 [%2-" + QObject::tr("options") +
QStringLiteral("] %3\n\n")
helpText += (QObject::tr("Usage") + ": %1 [%2-" + QObject::tr("options") +
QStringLiteral("] %3\n\n"))
.arg(args.join(QStringLiteral(" ")))
.arg(argName)
.arg(argText);