Trait yacli::CliArgs [] [src]

pub trait CliArgs<E, D>: Decodable where D: CliDispatcher<E> {
    fn usage() -> &'static str;
    fn get_dispatcher<'a>(&'a self) -> &'a Option<D>;
    fn get_args<'a>(&'a self) -> &'a Vec<String>;

    fn get_verbose(&self) -> bool { ... }
    fn get_show_list(&self) -> bool { ... }
    fn get_list(&self) -> Vec<String> { ... }
    fn try_dispatch(&self, shell: &mut MultiShell) -> Result<(), E> { ... }
}

Represents a cli args

Required Methods

fn usage() -> &'static str

fn get_dispatcher<'a>(&'a self) -> &'a Option<D>

fn get_args<'a>(&'a self) -> &'a Vec<String>

Provided Methods

fn get_verbose(&self) -> bool

fn get_show_list(&self) -> bool

fn get_list(&self) -> Vec<String>

fn try_dispatch(&self, shell: &mut MultiShell) -> Result<(), E>

Implementors