Struct getopts::OptGroup
pub struct OptGroup { short_name: ~str, long_name: ~str, hint: ~str, desc: ~str, hasarg: HasArg, 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).