OptionGroup.setParseHooks

Associates two functions with group which will be called from OptionContext.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 OptionGroup.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