Merge pull request #2404 from YosysHQ/claire/fixrpcargs

Fix argument handling in connect_rpc
This commit is contained in:
clairexen 2020-10-20 11:32:35 +02:00 committed by GitHub
commit 099d0c2a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;