code: def confirmation_option(*param_decls, **attrs):
      """Shortcut for confirmation prompts that can be ignored by passing
      ``--yes`` as parameter.
  
      This is equivalent to decorating a function with :func:`option` with
      the following parameters::
  
          def callback(ctx, param, value):
              if not value:
                  ctx.abort()
  
          @click.command()
          @click.option('--yes', is_flag=True, callback=callback,
                        expose_value=False, prompt='Do you want to continue?')
          def dropdb():
              pass
      """
  
      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
  
imports: import inspect
  import sys
  from functools import update_wrapper
  from ._compat import iteritems
  from ._unicodefun import _check_for_unicode_literals
  from .core import Argument
  from .core import Command
  from .core import Group
  from .core import Option
  from .globals import get_current_context
  from .utils import echo
label_desc: Use image node_id 10 for calling a global function with example usage: confirmation_option() and returns: decorator, option