mirror of https://github.com/YosysHQ/yosys.git
Improve "read" error msg
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
a82a7eb42e
commit
60e3c38054
|
@ -2316,7 +2316,7 @@ struct ReadPass : public Pass {
|
|||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
{
|
||||
if (args.size() < 2)
|
||||
if (args.size() < 2 || args[1][0] != '-')
|
||||
log_cmd_error("Missing mode parameter.\n");
|
||||
|
||||
if (args.size() < 3)
|
||||
|
|
Loading…
Reference in New Issue