| 355 | |
| 356 | |
| 357 | static std::string parseStringArg(int& i, const std::vector<std::string>& tokens, |
| 358 | int offset = 0) { |
| 359 | if ((i + 1) >= (int)tokens.size()) { |
| 360 | std::cerr << "ERROR: string argument expected for " |
| 361 | << tokens[i - offset] << std::endl; |
| 362 | usage("bzfs"); |
| 363 | } |
| 364 | i++; // skip the option argument string |
| 365 | return tokens[i]; |
| 366 | } |
| 367 | |
| 368 | |
| 369 | //============================================================================// |