Skip to main content

run

Function run 

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

Parse args, dispatch, and return the process exit code (04).

A clap parse error or unknown subcommand maps to 4; --help / --version short-circuit to 0. A handler’s CliError is printed to stderr — as cardanowall: <message> in human mode, or as a structured {"error":{…}} object in JSON mode — and its code returned.