mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix --help parameter for solfuzzer
the `readStandardInput()` branch would be taken if "input-file" was not given and only "help", thus never reaching the check for "help"
This commit is contained in:
parent
a3a60b8eb9
commit
101ca5c120
@ -84,18 +84,22 @@ Allowed options)",
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (arguments.count("quiet"))
|
||||
quiet = true;
|
||||
|
||||
if (arguments.count("help"))
|
||||
{
|
||||
cout << options;
|
||||
return 0;
|
||||
}
|
||||
|
||||
string input;
|
||||
if (arguments.count("input-file"))
|
||||
input = readFileAsString(arguments["input-file"].as<string>());
|
||||
else
|
||||
input = readStandardInput();
|
||||
|
||||
if (arguments.count("quiet"))
|
||||
quiet = true;
|
||||
|
||||
if (arguments.count("help"))
|
||||
cout << options;
|
||||
else if (arguments.count("const-opt"))
|
||||
if (arguments.count("const-opt"))
|
||||
FuzzerUtil::testConstantOptimizer(input, quiet);
|
||||
else if (arguments.count("standard-json"))
|
||||
FuzzerUtil::testStandardCompiler(input, quiet);
|
||||
|
Loading…
Reference in New Issue
Block a user