Skip to main content

main

Function main 

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

Run the command with args (the first is the program name) and return the process exit code. Errors are printed to stderr. --help, --version, and invalid arguments exit the process, as clap does.