Trait structopt_flags::GetWithDefault[][src]

pub trait GetWithDefault {
    type Item;
    fn get_with_default(&self, default: Self::Item) -> Self::Item;
}

This trait is designed to provide a rude form of default value for options If an option doesn't have a default value, it will implement this trait

Associated Types

Required Methods

This function can be used to retrieve the value of the command line option taking in account the default value used as argument

Implementors