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_summary
parse
set_description
set_help_enabled
set_ignore_unknown_options
set_main_group
set_summary
set_translate_func
set_translation_domain
OptionContext
Object Hierarchy:
Description:
[
Compact
]
public
class
OptionContext
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
OptionContext
(
string
parameter_string)
Methods:
public
void
set_summary
(
string
summary)
public
unowned
string
get_summary
()
public
void
set_description
(
string
description)
public
void
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
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
()