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,
}: 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 | Unstable : use the crates.io Short name of the option, e.g. |
long_name | Unstable : use the crates.io Long name of the option, e.g. |
hint | Unstable : use the crates.io Hint for argument, e.g. |
desc | Unstable : use the crates.io Description for usage help text |
hasarg | Unstable : use the crates.io Whether option has an argument |
occur | Unstable : use the crates.io How often it can occur |
Methods
impl OptGroup
fn long_to_short(&self) -> Opt
: use the crates.io getopts library instead
Translate OptGroup into Opt. (Both short and long names correspond to different Opts).