Skip to content

Commit 42770fc

Browse files
committed
CommandLineParser: Don't assume clear internal state before parsing
1 parent 79af55e commit 42770fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

solc/CommandLineParser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,9 @@ void CommandLineParser::parseArgs(int _argc, char const* const* _argv)
896896
po::options_description allOptions = optionsDescription();
897897
po::positional_options_description filesPositions = positionalOptionsDescription();
898898

899+
m_options = {};
900+
m_args = {};
901+
899902
// parse the compiler arguments
900903
try
901904
{

0 commit comments

Comments
 (0)