OptionGroup


Description:

public OptionGroup (string name, string description, string help_description, void* user_data = null, DestroyNotify? destroy = null)

Creates a new OptionGroup.

Parameters:

name

the name for the option group, this is used to provide help for the options in this group with `--help-`name

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-`name option. This string is translated using the translation domain or translation function of the group

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 user_data, or null

Returns:

a newly created option group. It should be added to a OptionContext or freed with g_option_group_unref.