mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2404 from YosysHQ/claire/fixrpcargs
Fix argument handling in connect_rpc
This commit is contained in:
commit
099d0c2a8a
|
@ -401,10 +401,11 @@ struct RpcFrontend : public Pass {
|
||||||
std::string arg = args[argidx];
|
std::string arg = args[argidx];
|
||||||
if (arg == "-exec" && argidx+1 < args.size()) {
|
if (arg == "-exec" && argidx+1 < args.size()) {
|
||||||
command.insert(command.begin(), args.begin() + argidx + 1, args.end());
|
command.insert(command.begin(), args.begin() + argidx + 1, args.end());
|
||||||
|
argidx = args.size()-1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (arg == "-path" && argidx+1 < args.size()) {
|
if (arg == "-path" && argidx+1 < args.size()) {
|
||||||
path = args[argidx+1];
|
path = args[++argidx];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue