mirror of https://github.com/YosysHQ/yosys.git
Bugfix in verilog_defaults argument parser
This commit is contained in:
parent
b66d50e62d
commit
34005348b6
|
@ -407,7 +407,7 @@ struct VerilogDefaults : public Pass {
|
||||||
}
|
}
|
||||||
virtual void execute(std::vector<std::string> args, RTLIL::Design*)
|
virtual void execute(std::vector<std::string> args, RTLIL::Design*)
|
||||||
{
|
{
|
||||||
if (args.size() == 0)
|
if (args.size() < 2)
|
||||||
cmd_error(args, 1, "Missing argument.");
|
cmd_error(args, 1, "Missing argument.");
|
||||||
|
|
||||||
if (args[1] == "-add") {
|
if (args[1] == "-add") {
|
||||||
|
|
Loading…
Reference in New Issue