pub fn require_flag<'a>(
flags: &'a BTreeMap<String, String>,
name: &str,
) -> Result<&'a str, String>Expand description
Look up a required flag; emit a helpful error if it’s missing.
§Errors
Returns an error string if name is not present in flags.