diff --git a/application/argumentparser.cpp b/application/argumentparser.cpp index 64a5e5a..303a428 100644 --- a/application/argumentparser.cpp +++ b/application/argumentparser.cpp @@ -115,7 +115,7 @@ void ArgumentSuggestion::addTo(multiset &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; diff --git a/tests/argumentparsertests.cpp b/tests/argumentparsertests.cpp index 4bc39f4..4d0a624 100644 --- a/tests/argumentparsertests.cpp +++ b/tests/argumentparsertests.cpp @@ -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())); }