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

Function optional_argument_matches

packages/server/src/service.rs:448–450  ·  view source on GitHub ↗
(arguments: &[String], name: &str, expected: Option<&str>)

Source from the content-addressed store, hash-verified

446}
447
448fn optional_argument_matches(arguments: &[String], name: &str, expected: Option<&str>) -> bool {
449 argument_value(arguments, name).as_deref() == expected
450}
451
452fn flag_matches(arguments: &[String], name: &str, expected: bool) -> bool {
453 arguments.iter().any(|argument| argument == name) == expected

Callers 1

Calls 1

argument_valueFunction · 0.85

Tested by

no test coverage detected