Skip to content

Commit

Permalink
Don't return an error from --help
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Oct 11, 2021
1 parent 5f7245f commit ef8d52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solc/CommandLineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ bool CommandLineInterface::processInput()
{
case InputMode::Help:
CommandLineParser::printHelp(sout());
return false;
break;
case InputMode::License:
printLicense();
break;
Expand Down
2 changes: 1 addition & 1 deletion test/solc/CommandLineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef8d52f

Please sign in to comment.