Skip to main content

parse_and_exit

Function parse_and_exit 

Source
pub fn parse_and_exit<T, P, F>(parse: P, run: F) -> !
where P: FnOnce() -> T, F: FnOnce(T) -> Result<i32, FatalCliError>,
Expand description

Parse CLI state, run the handler, and exit the process with the resulting code.