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

Function print_help

app/server/main.cpp:44–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42bool has_arg(int argc, char ** argv, const std::string & name) {
43 for (int i = 1; i < argc; ++i) {
44 if (argv[i] == name) {
45 return true;
46 }
47 }
48 return false;
49}
50
51std::vector<std::string> arg_values(int argc, char ** argv, const std::string & name) {
52 std::vector<std::string> out;
53 for (int i = 1; i + 1 < argc; ++i) {
54 if (argv[i] == name) {
55 out.emplace_back(argv[i + 1]);
56 ++i;
57 }
58 }
59 return out;
60}
61

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected