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

Function optional_path_arg

app/cli/args.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::optional<std::filesystem::path> optional_path_arg(int argc, char ** argv, const std::string & name) {
86 if (const auto value = find_arg(argc, argv, name)) {
87 return std::filesystem::path(*value);
88 }
89 return std::nullopt;
90}
91
92engine::core::BackendType parse_backend(const std::string & value) {
93 if (value == "cpu") {

Callers 5

has_batch_inputFunction · 0.85
has_vad_chunk_optionFunction · 0.85
run_streamingFunction · 0.85
mainFunction · 0.85

Calls 1

find_argFunction · 0.70

Tested by

no test coverage detected