Skip to main content

run

Function run 

Source
pub fn run(
    options: CliOptions,
    arguments: impl IntoIterator<Item = OsString>,
) -> u8
Expand description

Parses arguments, the program name first, runs them over the options’ models, and returns the exit code.

The code is 0 on success, SOME_RUNS_NOT_OK for a sweep or merge with a missing run or a run that is not ok, and 2 for a command line that does not parse. Any other error prints to stderr as Error: and its causes, and returns 1.

Note that this owns the process. It installs the panic hook, and --threads sizes rayon’s global pool. A process can size that pool only once.