Improve "read" error msg
authorClifford Wolf <clifford@clifford.at>
Fri, 1 Mar 2019 04:34:42 +0000 (20:34 -0800)
committerClifford Wolf <clifford@clifford.at>
Fri, 1 Mar 2019 04:34:42 +0000 (20:34 -0800)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc

index 8ee951d2023b2a59bcbb76ba3d9cf48dfcd6835a..9f52ffdc21a5223f5c21f7ac99b87c09e656cf5f 100644 (file)
@@ -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)