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

Method registerFoundOption

contrib/qcommandlineparser.cpp:460–469  ·  view source on GitHub ↗

! \internal Looks up the option \a optionName (found on the command line) and register it as found. Returns \c true on success. */

Source from the content-addressed store, hash-verified

458 Returns \c true on success.
459 */
460bool QCommandLineParserPrivate::registerFoundOption(const QString &optionName)
461{
462 if (nameHash.contains(optionName)) {
463 optionNames.append(optionName);
464 return true;
465 } else {
466 unknownOptionNames.append(optionName);
467 return false;
468 }
469}
470
471/*!
472 \internal

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected