Trait structopt_flags::GetWithDefault
source · pub trait GetWithDefault {
type Item;
fn get_with_default(&self, default: Self::Item) -> Self::Item;
}Expand description
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
Required Associated Types
Required Methods
sourcefn get_with_default(&self, default: Self::Item) -> Self::Item
fn get_with_default(&self, default: Self::Item) -> Self::Item
This function can be used to retrieve the value of the command line option taking in account the default value used as argument