Function rg::args::clap_matches
source · fn clap_matches<I, T>(args: I) -> Result<ArgMatches<'static>, Box<dyn Error>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Expand description
Returns a clap matches object if the given arguments parse successfully.
Otherwise, if an error occurred, then it is returned unless the error
corresponds to a --help
or --version
request. In which case, the
corresponding output is printed and the current process is exited
successfully.