diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 1358dd484..9d2279910 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -607,7 +607,7 @@ bool CommandLineInterface::processInput() { case InputMode::Help: CommandLineParser::printHelp(sout()); - return false; + break; case InputMode::License: printLicense(); break; diff --git a/test/solc/CommandLineInterface.cpp b/test/solc/CommandLineInterface.cpp index 739213e8f..0269ec462 100644 --- a/test/solc/CommandLineInterface.cpp +++ b/test/solc/CommandLineInterface.cpp @@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE(help) { OptionsReaderAndMessages result = parseCommandLineAndReadInputFiles({"solc", "--help"}, "", /* _processInput */ true); - BOOST_TEST(!result.success); + BOOST_TEST(result.success); BOOST_TEST(boost::starts_with(result.stdoutContent, "solc, the Solidity commandline compiler.")); BOOST_TEST(result.stderrContent == ""); BOOST_TEST(result.options.input.mode == InputMode::Help);