pub fn flag_pairs<'a>(
args: &'a [ActionToken<'a>],
) -> Result<Vec<(&'a Flag, &'a [ActionToken<'a>])>, ArgError>Expand description
Break up the arguments to a command into pairs of flags and their arguments. If an argument is an ActionToken::Group, then its contents will be returned with the flag.
This returns an error if all of the arguments cannot be broken up into pairs of flags and non-flags.