Move the Yul experimental warning from CommandLineParser to CommandLineInterface and remove stderr from the parser

This commit is contained in:
Kamil Śliwak
2021-11-09 18:16:30 +01:00
parent 3f5471165f
commit 16f62ed43e
4 changed files with 4 additions and 30 deletions
+3 -2
View File
@@ -583,7 +583,7 @@ void CommandLineInterface::createJson(string const& _fileName, string const& _js
bool CommandLineInterface::parseArguments(int _argc, char const* const* _argv)
{
CommandLineParser parser(serr(/* _markAsUsed */ false));
CommandLineParser parser;
if (isatty(fileno(stdin)) && _argc == 1)
{
@@ -604,7 +604,6 @@ bool CommandLineInterface::parseArguments(int _argc, char const* const* _argv)
return false;
}
m_hasOutput = m_hasOutput || parser.hasOutput();
m_options = parser.options();
return true;
@@ -1003,6 +1002,8 @@ bool CommandLineInterface::assemble(yul::AssemblyStack::Language _language, yul:
{
solAssert(m_options.input.mode == InputMode::Assembler, "");
serr() << "Warning: Yul is still experimental. Please use the output with care." << endl;
bool successful = true;
map<string, yul::AssemblyStack> assemblyStacks;
for (auto const& src: m_fileReader.sourceCodes())