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 |
long_name | Long Name of the |
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).