From: Claire Xenia Wolf Date: Mon, 19 Oct 2020 11:40:57 +0000 (+0200) Subject: Fix argument handling in connect_rpc X-Git-Tag: working-ls180~239^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acc9d0575b64b69a8ae92c8554aaaca3649e1ea0;p=yosys.git Fix argument handling in connect_rpc Signed-off-by: Claire Xenia Wolf --- diff --git a/frontends/rpc/rpc_frontend.cc b/frontends/rpc/rpc_frontend.cc index 5a40001cb..c12640ef0 100644 --- a/frontends/rpc/rpc_frontend.cc +++ b/frontends/rpc/rpc_frontend.cc @@ -401,10 +401,11 @@ struct RpcFrontend : public Pass { std::string arg = args[argidx]; if (arg == "-exec" && argidx+1 < args.size()) { command.insert(command.begin(), args.begin() + argidx + 1, args.end()); + argidx = args.size()-1; continue; } if (arg == "-path" && argidx+1 < args.size()) { - path = args[argidx+1]; + path = args[++argidx]; continue; } break;