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(()).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UClapError<ClapErrorWrapper> for Error

Source§

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

Implementors§