MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / errorText

Method errorText

contrib/qcommandlineparser.cpp:397–406  ·  view source on GitHub ↗

! Returns a translated error text for the user. This should only be called when parse() returns \c false. */

Source from the content-addressed store, hash-verified

395 This should only be called when parse() returns \c false.
396*/
397QString QCommandLineParser::errorText() const
398{
399 if (!d->errorText.isEmpty())
400 return d->errorText;
401 if (d->unknownOptionNames.count() == 1)
402 return tr("Unknown option '%1'.").arg(d->unknownOptionNames.first());
403 if (d->unknownOptionNames.count() > 1)
404 return tr("Unknown options: %1.").arg(d->unknownOptionNames.join(QStringLiteral(", ")));
405 return QString();
406}
407
408/*!
409 Processes the command line \a arguments.

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected