Skip to content

Commit

Permalink
CommandLineParser: Don't color the error message printed when --color…
Browse files Browse the repository at this point in the history
… and --no-color are used at the same time
  • Loading branch information
cameel committed Oct 13, 2023
1 parent 3186e86 commit 16cbce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solc/CommandLineParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16cbce4

Please sign in to comment.