From 7c5015d54e422b02d58452d958f1c359056236c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 12 Jan 2021 20:53:05 +0100 Subject: [PATCH] fixed --check-library not showing anything on its own (#3035) --- cli/cmdlineparser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 41b405383..efd0293dd 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -228,8 +228,11 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[]) mSettings->checkConfiguration = true; // Check library definitions - else if (std::strcmp(argv[i], "--check-library") == 0) + else if (std::strcmp(argv[i], "--check-library") == 0) { mSettings->checkLibrary = true; + // need to add "information" or no messages will be shown at all + mSettings->addEnabled("information"); + } else if (std::strncmp(argv[i], "--clang", 7) == 0) { mSettings->clang = true;