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, param: Option<&'a str>) -> Arg<'a>

The argument takes a single parameter.

fn one_or_more(self, param: Option<&'a str>) -> Arg<'a>

The argument takes one or more parameters.

fn zero_or_more(self, param: Option<&'a str>) -> Arg<'a>

The argument takes zero or more parameters.

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

The argument is a flag. Only valid for optional arguments.

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

The argument is an interrupt flag. Only valid for optional arguments.

Trait Implementations

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

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

Formats the value using the given formatter.