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

Function set_option

app/cli/args.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void set_option(
51 std::unordered_map<std::string, std::string> & options,
52 const std::string & key,
53 const std::string & value) {
54 const auto [it, inserted] = options.emplace(key, value);
55 if (!inserted && it->second != value) {
56 throw std::runtime_error("conflicting request option value for " + key);
57 }
58}
59
60void set_option_from_arg(
61 int argc,

Callers 5

build_request_from_jsonFunction · 0.85
build_request_from_cliFunction · 0.85
set_option_from_argFunction · 0.85
build_audio_dir_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected