OptionContext
Deprecated since version PyGObject-3.16.0: GObject.OptionContext is deprecated; use GLib.OptionContext instead
-
class OptionContext(*args, **kwargs)
Methods
-
class OptionContext
-
add_group(group: OptionGroup) → None
- Parameters:
group
-
get_help_enabled() → bool
-
get_ignore_unknown_options() → bool
-
get_main_group() → OptionGroup
-
parse(argv: Sequence[str]) → tuple[bool, list[str]]
- Parameters:
argv
-
set_help_enabled(help_enabled: bool) → None
- Parameters:
help_enabled
-
set_ignore_unknown_options(ignore_unknown: bool) → None
- Parameters:
ignore_unknown
-
set_main_group(group: OptionGroup) → None
- Parameters:
group