Skip to main content

prefix_matches

Function prefix_matches 

Source
pub fn prefix_matches(prefix: &[String], argv: &[String]) -> bool
Expand description

Whether argv starts with prefix, a prefix of at least two elements (a bare program allows any argument, so it is never a prefix).