[src]

Struct getopts::OptGroup

pub struct OptGroup {
    short_name: ~str,
    long_name: ~str,
    hint: ~str,
    desc: ~str,
    hasarg: HasArg,
    occur: Occur,
}

One group of options, e.g., both -h and --help, along with their shared description and properties.

Fields

short_name

Short Name of the OptGroup

long_name

Long Name of the OptGroup

hint

Hint

desc

Description

hasarg

Whether it has an argument

occur

How often it can occur

Methods

impl OptGroup

fn long_to_short(&self) -> Opt

Translate OptGroup into Opt. (Both short and long names correspond to different Opts).

Trait Implementations

Derived Implementations

impl Eq for OptGroup

fn eq(&self, __arg_0: &OptGroup) -> bool

fn ne(&self, __arg_0: &OptGroup) -> bool

impl Clone for OptGroup

fn clone(&self) -> OptGroup