Fix plural of parameter

This commit is contained in:
Martchus 2021-03-30 20:48:05 +02:00
parent e2a7d807a3
commit f30947cc75
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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()));
}