From: Clifford Wolf Date: Fri, 1 Mar 2019 04:34:42 +0000 (-0800) Subject: Improve "read" error msg X-Git-Tag: yosys-0.9~284 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60e3c38054f10251021fa2f504ad2424da33aa1d;p=yosys.git Improve "read" error msg Signed-off-by: Clifford Wolf --- diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index 8ee951d20..9f52ffdc2 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -2316,7 +2316,7 @@ struct ReadPass : public Pass { } void execute(std::vector 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)