Skip to main content

run_cli

Function run_cli 

Source
pub fn run_cli<I, T>(arguments: I) -> i32
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Run the CLI over process-style arguments (argv[0] included).

Returns the process exit code. All output goes to the process stdout and stderr exactly as the standalone binary would print it: --help and --version exit 0, argument errors exit 2, command failures print error: ... and exit 1.