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

Method values

contrib/qcommandlineparser.cpp:696–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694 */
695
696QStringList QCommandLineParser::values(const QString &optionName) const
697{
698 d->checkParsed("values");
699 const NameHash_t::const_iterator it = d->nameHash.find(optionName);
700 if (it != d->nameHash.end()) {
701 const int optionOffset = *it;
702 QStringList values = d->optionValuesHash.value(optionOffset);
703 if (values.isEmpty())
704 values = d->commandLineOptionList.at(optionOffset).defaultValues();
705 return values;
706 }
707
708 qWarning("QCommandLineParser: option not defined: \"%s\"", qPrintable(optionName));
709 return QStringList();
710}
711
712/*!
713 \overload

Callers

nothing calls this directly

Calls 5

checkParsedMethod · 0.80
valueMethod · 0.80
defaultValuesMethod · 0.80
namesMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected