OptionGroup
Description:
Creates a new OptionGroup.
description
is typically used to provide a title for the group. If so, it is recommended that it’s written in title case, and
has a trailing colon so that it matches the style of built-in GLib group titles such as ‘Application Options:’.
Parameters:
name |
the name for the option group, this is used to provide help for the options in this group with `--help-` |
description |
a description for this group to be shown in `--help`. This string is translated using the translation domain or translation function of the group |
help_description |
a description for the `--help-` |
user_data |
user data that will be passed to the pre- and post-parse hooks, the error hook and to callbacks of g_option_arg_callback options, or null |
destroy |
a function that will be called to free |
Returns:
a newly created option group. It should be added to a OptionContext or
freed with |