| 13 | std::string aws_prefix; |
| 14 | |
| 15 | void parse_args(int argc, char** argv) |
| 16 | { |
| 17 | const std::string resource_prefix_option = "--aws_prefix="; |
| 18 | for (int i = 1; i < argc; i++) { |
| 19 | std::string arg = argv[i]; |
| 20 | if (arg.find(resource_prefix_option) == 0) { |
| 21 | aws_prefix = arg.substr(resource_prefix_option.length()); // get whatever value after the '=' |
| 22 | break; |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | int main(int argc, char** argv) |
| 28 | { |