Skip to main content

parse_and_run

Function parse_and_run 

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

Parse CLI state with one closure and execute it with another.