Fix plural of parameter
This commit is contained in:
parent
e2a7d807a3
commit
f30947cc75
|
@ -115,7 +115,7 @@ void ArgumentSuggestion::addTo(multiset<ArgumentSuggestion> &suggestions, size_t
|
|||
* \class ArgumentReader
|
||||
* \brief The ArgumentReader class internally encapsulates the process of reading command line arguments.
|
||||
* \remarks
|
||||
* - For meaning of parameter see documentation of corresponding member variables.
|
||||
* - For meaning of parameters see documentation of corresponding member variables.
|
||||
* - Results are stored in specified \a args and assigned sub arguments.
|
||||
* - This class is explicitely *not* part of the public API.
|
||||
*/
|
||||
|
@ -1611,11 +1611,11 @@ void ArgumentParser::checkConstraints(const ArgumentVector &args)
|
|||
continue;
|
||||
}
|
||||
stringstream ss(stringstream::in | stringstream::out);
|
||||
ss << "Not all parameter for argument \"" << arg->name() << "\" ";
|
||||
ss << "Not all parameters for argument \"" << arg->name() << "\" ";
|
||||
if (i) {
|
||||
ss << " (" << (i + 1) << " occurrence) ";
|
||||
}
|
||||
ss << "provided. You have to provide the following parameter:";
|
||||
ss << "provided. You have to provide the following parameters:";
|
||||
size_t valueNamesPrint = 0;
|
||||
for (const auto &name : arg->m_valueNames) {
|
||||
ss << ' ' << name;
|
||||
|
|
|
@ -419,7 +419,7 @@ void ArgumentParserTests::testParsing()
|
|||
} catch (const ParseError &e) {
|
||||
CPPUNIT_ASSERT(!qtConfigArgs.qtWidgetsGuiArg().isPresent());
|
||||
CPPUNIT_ASSERT_EQUAL(
|
||||
"Not all parameter for argument \"fields\" provided. You have to provide the following parameter: title album artist trackpos"s,
|
||||
"Not all parameters for argument \"fields\" provided. You have to provide the following parameters: title album artist trackpos"s,
|
||||
string(e.what()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue