mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CommandLineParser: Replace global sout/serr streams with class members
- This removes the global variable and prevents stderr/stdout from being printed in tests
This commit is contained in:
@@ -497,11 +497,11 @@ void CommandLineInterface::createJson(string const& _fileName, string const& _js
|
||||
|
||||
bool CommandLineInterface::parseArguments(int _argc, char const* const* _argv)
|
||||
{
|
||||
CommandLineParser parser;
|
||||
CommandLineParser parser(sout(false), serr(false));
|
||||
bool success = parser.parse(_argc, _argv, isatty(fileno(stdin)));
|
||||
if (!success)
|
||||
return false;
|
||||
g_hasOutput = g_hasOutput || CommandLineParser::hasOutput();
|
||||
g_hasOutput = g_hasOutput || parser.hasOutput();
|
||||
m_options = parser.options();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user