:right-sidebar: True OptionContext =================================================================== .. currentmodule:: gi.repository.GObject .. deprecated:: PyGObject-3.16.0 GObject.OptionContext is deprecated; use GLib.OptionContext instead .. class:: OptionContext(*args, **kwargs) :no-contents-entry: Methods ------- .. rst-class:: interim-class .. class:: OptionContext :no-index: .. method:: add_group(group: ~gi.repository.GLib.OptionGroup) -> None :param group: .. method:: add_main_entries(entries: list[~gi.repository.GLib.OptionEntry], translation_domain: str | None = None) -> None :param entries: :param translation_domain: .. method:: free() -> None .. method:: get_description() -> str .. method:: get_help(main_help: bool, group: ~gi.repository.GLib.OptionGroup | None = None) -> str :param main_help: :param group: .. method:: get_help_enabled() -> bool .. method:: get_ignore_unknown_options() -> bool .. method:: get_main_group() -> ~gi.repository.GLib.OptionGroup .. method:: get_strict_posix() -> bool .. method:: get_summary() -> str .. method:: parse(argv: list[str] = Ellipsis) -> tuple[bool, list[str]] :param argv: .. method:: parse_strv(arguments: list[str] = Ellipsis) -> tuple[bool, list[str]] :param arguments: .. method:: set_description(description: str | None = None) -> None :param description: .. method:: set_help_enabled(help_enabled: bool) -> None :param help_enabled: .. method:: set_ignore_unknown_options(ignore_unknown: bool) -> None :param ignore_unknown: .. method:: set_main_group(group: ~gi.repository.GLib.OptionGroup) -> None :param group: .. method:: set_strict_posix(strict_posix: bool) -> None :param strict_posix: .. method:: set_summary(summary: str | None = None) -> None :param summary: .. method:: set_translate_func(func: ~collections.abc.Callable[[str, ~typing.Any], str] | None = None, data: ~typing.Any = None) -> None :param func: :param data: .. method:: set_translation_domain(domain: str) -> None :param domain: