(err: &clap::Error, kind: ContextKind)
| 206 | } |
| 207 | |
| 208 | fn ctx_str(err: &clap::Error, kind: ContextKind) -> Option<String> { |
| 209 | match err.get(kind) { |
| 210 | Some(ContextValue::String(s)) => Some(s.clone()), |
| 211 | Some(ContextValue::StyledStr(s)) => Some(s.to_string()), |
| 212 | _ => None, |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | fn ctx_list(err: &clap::Error, kind: ContextKind) -> Vec<String> { |
| 217 | match err.get(kind) { |