MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / collect_args

Function collect_args

app/cli/args.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25std::vector<std::string> collect_args(int argc, char ** argv, const std::string & name) {
26 std::vector<std::string> values;
27 for (int i = 1; i + 1 < argc; ++i) {
28 if (argv[i] == name) {
29 values.emplace_back(argv[i + 1]);
30 }
31 }
32 return values;
33}
34
35std::unordered_map<std::string, std::string> collect_key_value_args(
36 int argc,

Callers 1

collect_key_value_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected