[−][src]Trait clapme::ClapMe
Any type of trait ClapMe
can be used as an argument value.
Provided methods
fn with_clap<T>(_info: ArgInfo, app: App, f: impl FnOnce(App) -> T) -> T
Updates and returns the corresponding clap::App
.
fn from_clap(_name: &str, _app: &ArgMatches) -> Option<Self>
Parses the clap info to obtain a value. None
is returned if
the argument was not required, and was also not provided.
fn requires_flags(name: &str) -> Vec<String>
Parses the clap info to obtain a value. None
is returned if
the argument was not required, and was also not provided.
fn help_message(cmdname: &str) -> String
The help message for this struct. This is most useful for test cases.
fn from_args() -> Self
Parse command line arguments.
fn from_iter<I, T>(args: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse arguments given through an iterable thing such as a Vec
or a slice.