From 156ba1069230409a4fccdb54992585cc9ce0de8b Mon Sep 17 00:00:00 2001 From: Ronald Hiemstra Date: Tue, 21 Sep 2021 09:37:54 +0200 Subject: [PATCH 1/2] Update help text in cmdlineparser.cpp The option --enable=style, does not enable 'style' but a group of ids. It enables 'warning', 'performance' and 'portability' --- cli/cmdlineparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index afc96c2b509..8897bc9a862 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1028,7 +1028,7 @@ void CmdLineParser::printHelp() " Enable warning messages\n" " * style\n" " Enable all coding style checks. All messages\n" - " with the severities 'style', 'performance' and\n" + " with the severities 'warning', 'performance' and\n" " 'portability' are enabled.\n" " * performance\n" " Enable performance messages\n" From 0a0932ba69096b20c7e52f81751deb1ff1588b0b Mon Sep 17 00:00:00 2001 From: Ronald Hiemstra Date: Tue, 21 Sep 2021 14:18:30 +0200 Subject: [PATCH 2/2] 'style' also enables 'style' checks --- cli/cmdlineparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 8897bc9a862..3d0dcd32cb1 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -1028,8 +1028,8 @@ void CmdLineParser::printHelp() " Enable warning messages\n" " * style\n" " Enable all coding style checks. All messages\n" - " with the severities 'warning', 'performance' and\n" - " 'portability' are enabled.\n" + " with the severities 'style', 'warning',\n" + " 'performance' and 'portability' are enabled.\n" " * performance\n" " Enable performance messages\n" " * portability\n"