OptionGroup.setParseHooks

Associates two functions with @group which will be called from g_option_context_parse() before the first option is parsed and after the last option has been parsed, respectively.

Note that the user data to be passed to @pre_parse_func and @post_parse_func can be specified when constructing the group with g_option_group_new().

class OptionGroup
void
setParseHooks

Parameters

preParseFunc GOptionParseFunc

a function to call before parsing, or %NULL

postParseFunc GOptionParseFunc

a function to call after parsing, or %NULL

Meta