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,
}rustc_private): use the crates.io getopts library instead
One group of options, e.g., both -h and --help, along with
their shared description and properties.
Fields
short_name: String
rustc_private): use the crates.io getopts library instead
Short name of the option, e.g. h for a -h option
long_name: String
rustc_private): use the crates.io getopts library instead
Long name of the option, e.g. help for a --help option
hint: String
rustc_private): use the crates.io getopts library instead
Hint for argument, e.g. FILE for a -o FILE option
desc: String
rustc_private): use the crates.io getopts library instead
Description for usage help text
hasarg: HasArg
rustc_private): use the crates.io getopts library instead
Whether option has an argument
occur: Occur
rustc_private): use the crates.io getopts library instead
How often it can occur
Methods
impl OptGroup[src]
fn long_to_short(&self) -> Opt
rustc_private): use the crates.io getopts library instead
Translate OptGroup into Opt. (Both short and long names correspond to different Opts).
Trait Implementations
Derived Implementations
impl Debug for OptGroup[src]
impl Eq for OptGroup[src]
impl PartialEq for OptGroup[src]
fn eq(&self, __arg_0: &OptGroup) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &OptGroup) -> bool
This method tests for !=.
impl Clone for OptGroup[src]
fn clone(&self) -> OptGroup
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more