GLib.OptionContext – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
OptionContext
OptionContext
add_group
add_main_entries
get_description
get_help
get_help_enabled
get_ignore_unknown_options
get_main_group
get_strict_posix
get_summary
parse
parse_strv
set_description
set_help_enabled
set_ignore_unknown_options
set_main_group
set_strict_posix
set_summary
set_translate_func
set_translation_domain
OptionContext
Object Hierarchy:
Description:
[
Compact
]
[
Version
( since =
"2.6"
) ]
public
class
OptionContext
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
OptionContext
(
string
? parameter_string =
null
)
Methods:
public
void
set_summary
(
string
summary)
public
unowned
string
get_summary
()
public
void
set_description
(
string
description)
public
unowned
string
get_description
()
public
void
set_translate_func
(
TranslateFunc
func,
DestroyNotify
? destroy_notify)
public
void
set_translation_domain
(
string
domain)
public
bool
parse
(
ref
string
[] argv)
throws
OptionError
public
bool
parse_strv
(
ref
string
[] argv)
throws
OptionError
public
void
set_help_enabled
(
bool
help_enabled)
public
bool
get_help_enabled
()
public
void
set_ignore_unknown_options
(
bool
ignore_unknown)
public
bool
get_ignore_unknown_options
()
public
string
get_help
(
bool
main_help,
OptionGroup
? group)
public
void
add_main_entries
(
OptionEntry
[] entries,
string
? translation_domain)
public
void
add_group
(
owned
OptionGroup
group)
public
void
set_main_group
(
owned
OptionGroup
group)
public
unowned
OptionGroup
get_main_group
()
public
void
set_strict_posix
(
bool
strict_posix)
public
bool
get_strict_posix
()