Skip to main content

run_from_args

Function run_from_args 

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

Run a restore from an argv-style iterator and return the process exit code.

--help and --version render to stdout and return EXIT_OK. A malformed command line renders to stderr and returns EXIT_BAD_ARGUMENTS.