Function require_arg 

Source
pub fn require_arg<'a>(
    matches: &'a ArgMatches,
    arg_name: &str,
    session_value: Option<&'a str>,
    session_hint: &str,
) -> Result<&'a str>
Expand description

Like resolve_arg but returns a helpful error if nothing is set.