Skip to main content

UClapError

Trait UClapError 

Source
pub trait UClapError<T> {
    // Required method
    fn with_exit_code(self, code: i32) -> T;
}
Expand description

Extension trait for clap::Error to adjust the exit code.

Required Methods§

Source

fn with_exit_code(self, code: i32) -> T

Set the exit code for the program if uumain returns Ok(()).

Implementations on Foreign Types§

Source§

impl UClapError<Result<ArgMatches, ClapErrorWrapper>> for Result<ArgMatches, Error>

Source§

impl UClapError<ClapErrorWrapper> for Error

Implementors§