Struct argi::Argument [−][src]
pub struct Argument<'a> {
pub instigators: &'a [&'a str],
pub used: bool,
pub data: Option<String>,
pub help: Help<'a>,
pub parses: Option<&'a str>,
pub parses_opt: bool,
pub run: Option<fn(_: &Self, _: Option<String>)>,
}
Fields
instigators: &'a [&'a str]
Calls which can be made which instigate this argument
used: bool
Indicates if a user has invoked this argument at any point
data: Option<String>
Raw data found from parsing
help: Help<'a>
Help message, if added, for this argument
parses: Option<&'a str>
The type of data this argument parses, if any
parses_opt: bool
Indicates if parsing is an optional endeavour
run: Option<fn(_: &Self, _: Option<String>)>
User-implemented closure which is ran at parse-time, if added