set_error_hook


Description:

public void set_error_hook (OptionErrorFunc? error_func)

Associates a function with this which will be called from parse when an error occurs.

Note that the user data to be passed to error_func can be specified when constructing the group with OptionGroup.

Parameters:

this

a OptionGroup

error_func

a function to call when an error occurs