pub fn get_raw<'a>(
matches: &[&'a ArgMatches],
id: &str,
) -> Flatten<IntoIter<RawValues<'a>>>
Expand description
Helper function for dealing with chains of ArgMatches
while
working in ActionCommand::action
to find arguments which may
have been specified anywhere in the subcommand tree.
// my-program --my-arg alpha my-subcommand --my-arg beta
let arg = get_raw(&matches, "my-arg");
assert_eq!(
vec![OsStr::new("alpha"), OsStr::new("beta")],
arg.collect::<Vec<_>>(),
);