Fix argument handling in connect_rpc

Signed-off-by: Claire Xenia Wolf <claire@symbioticeda.com>
This commit is contained in:
Claire Xenia Wolf 2020-10-19 13:40:57 +02:00
parent ac0bd2ffc4
commit acc9d0575b
1 changed files with 2 additions and 1 deletions

View File

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