4.23 GOptionArgFunc

Callback: GOptionArgFunc

A procedure given for it is called as (procedure option-name value) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

The type of function to be passed as callback for callback options.

option-name

Passed: a string.

The name of the option being parsed. This will be either a single dash followed by a single letter (for a short name) or two dashes followed by a long option name.

value

Passed: a string.

The value to be parsed.

%return

Returned: a boolean.

#t if the option was successfully parsed, #f if an error occurred, in which case error should be set with g_set_error()

data

Not passed: it is the user data that guile-gi supplied.

User data added to the <GOptionGroup> containing the option when it was created with option-group:new