Trait uucore::error::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

Implementations on Foreign Types§

source§

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

source§

impl UClapError<ClapErrorWrapper> for Error

Implementors§