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

Function parse_optional_float_arg

app/cli/args.cpp:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {
80 return std::stof(*value);
81 }
82 return std::nullopt;
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)) {

Callers 2

build_request_from_cliFunction · 0.85

Calls 1

find_argFunction · 0.70

Tested by

no test coverage detected