MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_required_f64_arg

Function parse_required_f64_arg

packages/server/src/main.rs:3424–3427  ·  view source on GitHub ↗
(command: &str, value: &str)

Source from the content-addressed store, hash-verified

3422}
3423
3424fn parse_required_f64_arg(command: &str, value: &str) -> anyhow::Result<f64> {
3425 parse_f64_arg(value)
3426 .ok_or_else(|| anyhow::anyhow!("{command} expected a finite number, got {value:?}."))
3427}
3428
3429fn clean_cli_args(args: Vec<String>) -> Vec<String> {
3430 args.into_iter()

Callers 1

Calls 1

parse_f64_argFunction · 0.85

Tested by

no test coverage detected