From c1bf388b15083f68bd84f952059d97695588d0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 18 Sep 2010 16:11:46 +0200 Subject: [PATCH] Fixed #2054 (Missing newline in 'invalid parameter' error message) --- cli/cmdlineparser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 7fb78dd1d..3554fc5c5 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -93,7 +93,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) const std::string errmsg = _settings->addEnabled("style"); if (!errmsg.empty()) { - std::cout << errmsg; + PrintMessage(errmsg); return false; } } @@ -121,7 +121,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) const std::string errmsg(_settings->nomsg.parseFile(f)); if (!errmsg.empty()) { - std::cout << errmsg; + PrintMessage(errmsg); return false; } } @@ -152,7 +152,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) const std::string errmsg = _settings->addEnabled("unusedFunctions"); if (!errmsg.empty()) { - std::cout << errmsg; + PrintMessage(errmsg); return false; } } @@ -166,7 +166,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) const std::string errmsg = _settings->addEnabled(argv[i] + 9); if (!errmsg.empty()) { - std::cout << errmsg; + PrintMessage(errmsg); return false; } }