Struct getopts::OptGroup[src]

pub struct OptGroup {
    pub short_name: String,
    pub long_name: String,
    pub hint: String,
    pub desc: String,
    pub hasarg: HasArg,
    pub 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 assert_receiver_is_total_eq(&self)

impl PartialEq for OptGroup

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

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

impl Clone for OptGroup

fn clone(&self) -> OptGroup

fn clone_from(&mut self, source: &Self)