MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / parse_args

Function parse_args

tests/main.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::string aws_prefix;
14
15void 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
27int main(int argc, char** argv)
28{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected