A destructor is present on this object, but not explicitly documented in the source.
Adds a #GOptionGroup to the context, so that parsing with context will recognize the options in the group. Note that this will take ownership of the group and thus the group should not be freed.
A convenience function which creates a main group if it doesn't exist, adds the entries to it and sets the translation domain.
Returns the description. See glib.option_context.OptionContext.setDescription.
Returns a formatted, translated help text for the given context. To obtain the text produced by --help, call g_option_context_get_help (context, TRUE, NULL). To obtain the text produced by --help-all, call g_option_context_get_help (context, FALSE, NULL). To obtain the help text for an option group, call g_option_context_get_help (context, FALSE, group).
Returns whether automatic --help generation is turned on for context. See glib.option_context.OptionContext.setHelpEnabled.
Returns whether unknown options are ignored or not. See glib.option_context.OptionContext.setIgnoreUnknownOptions.
Returns a pointer to the main group of context.
Returns whether strict POSIX code is enabled.
Returns the summary. See glib.option_context.OptionContext.setSummary.
Adds a string to be displayed in --help output after the list of options. This text often includes a bug reporting address.
Enables or disables automatic generation of --help output. By default, glib.option_context.OptionContext.parse recognizes --help, -h, -?, --help-all and --help-groupname and creates suitable output to stdout.
Sets whether to ignore unknown options or not. If an argument is ignored, it is left in the argv array after parsing. By default, glib.option_context.OptionContext.parse treats unknown options as error.
Sets a #GOptionGroup as main group of the context. This has the same effect as calling glib.option_context.OptionContext.addGroup, the only difference is that the options in the main group are treated differently when generating --help output.
Sets strict POSIX mode.
Adds a string to be displayed in --help output before the list of options. This is typically a summary of the program functionality.
Sets the function which is used to translate the contexts user-visible strings, for --help output. If func is null, strings are not translated.
A convenience function to use gettext() for translating user-visible strings.
A glib.option_context.OptionContext struct defines which options are accepted by the commandline option parser. The struct has only private fields and should not be directly accessed.