fn parse<P: AsRef<Path>>(
path: P
) -> Result<(Vec<OsString>, Vec<Box<dyn Error>>), Box<dyn Error>>
Expand description
Parse a single ripgrep rc file from the given path.
On success, this returns a set of shell arguments, in order, that should be pre-pended to the arguments given to ripgrep at the command line.
If the file could not be read, then an error is returned. If there was a problem parsing one or more lines in the file, then errors are returned for each line in addition to successfully parsed arguments.