use HashMap;
use crate*;
/// Takes an input string and a map of flags to check for presence of.
/// If a char in the input doesn't already exist in the map it errors.
/// A typical call will look like
/// let flags = parse_flags(&input, [('p', false), ('n', false), ('l', false)]).iter().cloned().collect()?;