Struct argonaut::OptArg [] [src]

pub struct OptArg<'a> {
    // some fields omitted
}

The builder for an optional argument.

Methods

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

fn single(self) -> Arg<'a>

The argument takes a single parameter.

fn one_or_more(self) -> Arg<'a>

The argument takes one or more parameters.

fn zero_or_more(self) -> Arg<'a>

The argument takes zero or more parameters.

fn interrupt(self) -> Arg<'a>

The argument is an interrupt (the parse is interrupted when it is encountered).

fn switch(self) -> Arg<'a>

The argument is a switch (boolean flag).

Trait Implementations

impl<'a> Debug for OptArg<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.