Skip to content

Commit 23b7505

Browse files
committed
CommandLineParser: Don't color the error message printed when --color and --no-color are used at the same time
1 parent fa43d1e commit 23b7505

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solc/CommandLineParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,10 @@ void CommandLineParser::parseArgs(int _argc, char const* const* _argv)
917917

918918
void CommandLineParser::processArgs()
919919
{
920-
if (m_args.count(g_strColor) > 0)
921-
m_options.formatting.coloredOutput = true;
922-
else if (m_args.count(g_strNoColor) > 0)
920+
if (m_args.count(g_strNoColor) > 0)
923921
m_options.formatting.coloredOutput = false;
922+
else if (m_args.count(g_strColor) > 0)
923+
m_options.formatting.coloredOutput = true;
924924

925925
checkMutuallyExclusive({
926926
g_strHelp,

0 commit comments

Comments
 (0)