Method
GLibOptionContextget_help
since: 2.14
Declaration [src]
gchar*
g_option_context_get_help (
GOptionContext* context,
gboolean main_help,
GOptionGroup* group
)
Description [src]
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).
Available since: 2.14
Parameters
main_help-
Type:
gbooleanIf
TRUE, only include the main group. group-
Type:
GOptionGroupThe
GOptionGroupto create help for, orNULL.The argument can be NULL.The data is owned by the caller of the method.