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

The name of the argument, which is also its long flag.

Is the argument required?

Flags that are required by this argument.

Flags that are in conflict with this argument.

Flag is required unless one of these other flags is present.

Can we repeat the flag?

Help string (if any)

Methods

impl<'a> ArgInfo<'a>
[src]

A new ArgInfo with sensible defaults.

Trait Implementations

impl<'a> Clone for ArgInfo<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for ArgInfo<'a>

impl<'a> Sync for ArgInfo<'a>