Skip to main content

is_flag

Function is_flag 

Source
fn is_flag(a: &str) -> bool
Expand description

An argument that is a flag, not text: it starts with -, is short and has no whitespace. A body that begins with - (a list) or --- is text and is scanned.