def confirmation_option(*param_decls, **attrs):
    def decorator(f):
        def callback(ctx, param, value):
            if not value:
                ctx.abort()
        attrs.setdefault('is_flag', True)
        attrs.setdefault('callback', callback)
        attrs.setdefault('expose_value', False)
        attrs.setdefault('prompt', 'Do you want to continue?')
        attrs.setdefault('help', 'Confirm the action without prompting.')
        return option(*(param_decls or ('--yes',)), **attrs)(f)
    return decorator
Called by a peer when an alert is invalid.
dataset/ETHPy150Open pallets/click/click/decorators.py/confirmation_option--crossover with--dataset/ETHPy150Open ricmoo/pycoind/pycoind/node/basenode.py/BaseNode.invalid_alert