(
iter: &mut std::slice::Iter<'_, String>,
flag: &str,
inline_value: Option<&str>,
)
| 703 | } |
| 704 | |
| 705 | fn 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 |
no test coverage detected