| 338 | } |
| 339 | |
| 340 | std::string JoinCommandLine(const std::vector<std::string>& args) |
| 341 | { |
| 342 | std::string result; |
| 343 | for (size_t i = 0; i < args.size(); ++i) { |
| 344 | if (i != 0) |
| 345 | result += ' '; |
| 346 | const std::string& arg = args[i]; |
| 347 | result += ShellQuoteIfNeed(arg); |
| 348 | } |
| 349 | return result; |
| 350 | } |
| 351 | |
| 352 | } // namespace toft |