MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / clean_cli_args

Function clean_cli_args

packages/server/src/main.rs:3429–3434  ·  view source on GitHub ↗
(args: Vec<String>)

Source from the content-addressed store, hash-verified

3427}
3428
3429fn clean_cli_args(args: Vec<String>) -> Vec<String> {
3430 args.into_iter()
3431 .map(|arg| arg.trim().to_owned())
3432 .filter(|arg| !arg.is_empty())
3433 .collect()
3434}
3435
3436fn parse_f64_arg(value: &str) -> Option<f64> {
3437 value.parse::<f64>().ok().filter(|value| value.is_finite())

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected