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

Function set_option_from_arg

app/cli/args.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void set_option_from_arg(
61 int argc,
62 char ** argv,
63 const std::string & arg_name,
64 const std::string & option_key,
65 std::unordered_map<std::string, std::string> & options) {
66 if (const auto value = find_arg(argc, argv, arg_name)) {
67 set_option(options, option_key, *value);
68 }
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)) {

Callers 1

build_request_from_cliFunction · 0.85

Calls 2

set_optionFunction · 0.85
find_argFunction · 0.70

Tested by

no test coverage detected