glib.option_group
Module for [OptionGroup] class
class OptionGroup
Types 1
classOptionGroup : gobject.boxed.Boxed
A [glib.option_group.OptionGroup] 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 [glib.option_group.OptionGroup] holding their options, which the application can then add to its #GOptionContext.
Methods
OptionGroup self()Returns `this`, for use in `with` statements.void addEntries(glib.types.OptionEntry[] entries)Adds the options specified in entries to group.void setTranslateFunc(glib.types.TranslateFunc func = null)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.void setTranslationDomain(string domain)A convenience function to use gettext() for translating user-visible strings.