All callbacks are called as follows:
func(option, opt, value, parser, *args, **kwargs)
where
None
(no argument expected), then
value will be None
. If "nargs > 1", value will
be a tuple of values of the appropriate type.
Since args and kwargs are optional (they are only passed if you supply callback_args and/or callback_kwargs when you define your callback option), the minimal callback function is:
def my_callback (option, opt, value, parser): pass
See About this document... for information on suggesting changes.