Skip to main content

run

Function run 

Source
pub fn run<I>(args: I) -> Result<ExitCode>
where I: IntoIterator<Item = String>,
Expand description

Run the CLI over args (the program’s arguments, excluding argv[0]).

Returns the process ExitCode: lint exits non-zero when it reports findings; every other path exits zero on success.

§Errors

Returns an error if the input file cannot be read, standard input cannot be read, or an unknown flag is supplied.