Struct getopts::OptGroupUnstable
[-] [+]
[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
Methods
impl OptGroup
fn long_to_short(&self) -> Opt
Translate OptGroup into Opt. (Both short and long names correspond to different Opts).