! \internal Looks up the option \a optionName (found on the command line) and register it as found. Returns \c true on success. */
| 458 | Returns \c true on success. |
| 459 | */ |
| 460 | bool 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 |