def debug_option(f):
def callback(ctx, param, value):<EOL><INDENT>state = ctx.ensure_object(Context)<EOL>state.debug = value<EOL>return value<EOL><DEDENT>return click.option('<STR_LIT>',<EOL>expose_value=False,<EOL>is_flag=True,<EOL>envvar="<STR_LIT>",<EOL>help='<STR_LIT>',<EOL>callback=callback)(f)<EOL>
Configures --debug option for CLI

:param f: Callback Function to be passed to Click