From 23b7505afd8dbb6b68da8a1db46fb24d1b973b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 10 Oct 2023 13:49:44 +0200 Subject: [PATCH] CommandLineParser: Don't color the error message printed when --color and --no-color are used at the same time --- solc/CommandLineParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solc/CommandLineParser.cpp b/solc/CommandLineParser.cpp index 2ab0f45b2103..23ceb001ccc2 100644 --- a/solc/CommandLineParser.cpp +++ b/solc/CommandLineParser.cpp @@ -917,10 +917,10 @@ void CommandLineParser::parseArgs(int _argc, char const* const* _argv) void CommandLineParser::processArgs() { - if (m_args.count(g_strColor) > 0) - m_options.formatting.coloredOutput = true; - else if (m_args.count(g_strNoColor) > 0) + if (m_args.count(g_strNoColor) > 0) m_options.formatting.coloredOutput = false; + else if (m_args.count(g_strColor) > 0) + m_options.formatting.coloredOutput = true; checkMutuallyExclusive({ g_strHelp,