mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Don't return an error from --help
This commit is contained in:
parent
a1c9c1e2b5
commit
0417db0f6a
@ -607,7 +607,7 @@ bool CommandLineInterface::processInput()
|
|||||||
{
|
{
|
||||||
case InputMode::Help:
|
case InputMode::Help:
|
||||||
CommandLineParser::printHelp(sout());
|
CommandLineParser::printHelp(sout());
|
||||||
return false;
|
break;
|
||||||
case InputMode::License:
|
case InputMode::License:
|
||||||
printLicense();
|
printLicense();
|
||||||
break;
|
break;
|
||||||
|
@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE(help)
|
|||||||
{
|
{
|
||||||
OptionsReaderAndMessages result = parseCommandLineAndReadInputFiles({"solc", "--help"}, "", /* _processInput */ true);
|
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(boost::starts_with(result.stdoutContent, "solc, the Solidity commandline compiler."));
|
||||||
BOOST_TEST(result.stderrContent == "");
|
BOOST_TEST(result.stderrContent == "");
|
||||||
BOOST_TEST(result.options.input.mode == InputMode::Help);
|
BOOST_TEST(result.options.input.mode == InputMode::Help);
|
||||||
|
Loading…
Reference in New Issue
Block a user