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

Function parse_int_arg

app/cli/args.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71int parse_int_arg(int argc, char ** argv, const std::string & name, int fallback) {
72 if (const auto value = find_arg(argc, argv, name)) {
73 return std::stoi(*value);
74 }
75 return fallback;
76}
77
78std::optional<float> parse_optional_float_arg(int argc, char ** argv, const std::string & name) {
79 if (const auto value = find_arg(argc, argv, name)) {

Callers 2

run_streamingFunction · 0.70
mainFunction · 0.70

Calls 1

find_argFunction · 0.70

Tested by

no test coverage detected