Struct clapme::ArgInfo [−][src]
pub struct ArgInfo<'a> { pub name: &'a str, pub required: bool, pub required_flags: &'a [&'a str], pub conflicted_flags: Vec<String>, pub required_unless_one: Vec<String>, pub multiple: bool, pub help: &'a str, }
Information needed to set up an argument.
Fields
name: &'a str
The name of the argument, which is also its long flag.
required: bool
Is the argument required?
required_flags: &'a [&'a str]
Flags that are required by this argument.
conflicted_flags: Vec<String>
Flags that are in conflict with this argument.
required_unless_one: Vec<String>
Flag is required unless one of these other flags is present.
multiple: bool
Can we repeat the flag?
help: &'a str
Help string (if any)
Methods
impl<'a> ArgInfo<'a>
[src]
impl<'a> ArgInfo<'a>