MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / take_flag_value

Function take_flag_value

src/tool_command/args.rs:705–714  ·  view source on GitHub ↗
(
    iter: &mut std::slice::Iter<'_, String>,
    flag: &str,
    inline_value: Option<&str>,
)

Source from the content-addressed store, hash-verified

703}
704
705fn take_flag_value(
706 iter: &mut std::slice::Iter<'_, String>,
707 flag: &str,
708 inline_value: Option<&str>,
709) -> Result<String> {
710 match inline_value {
711 Some(value) => Ok(value.to_string()),
712 None => take_value(iter, flag),
713 }
714}
715
716/// Read a value from disk when it starts with `@`. The leading `@` is
717/// stripped; the rest is treated as a path (relative to cwd). Plain values

Callers 1

Calls 1

take_valueFunction · 0.85

Tested by

no test coverage detected