OptionGroup
A GOptionGroup
struct defines the options in a single group. The struct has only private fields and should not be directly accessed.
All options in a group share the same translation function. Libraries which need to parse commandline options are expected to provide a function for getting a GOptionGroup
holding their options, which the application can then add to its #GOptionContext.
Skipped during bindings generation
parameter
entries
: OptionEntryparameter
error_func
: OptionErrorFuncparameter
pre_parse_func
: OptionParseFuncparameter
destroy
: DestroyNotify
Constructors
Functions
Increments the reference count of @group by one.
Sets the function which is used to translate user-visible strings, for --help
output. Different groups can use different #GTranslateFuncs. If @func is null, strings are not translated.
A convenience function to use gettext() for translating user-visible strings.