def password_option(*param_decls, **attrs):
def decorator(f):<EOL><INDENT>attrs.setdefault('<STR_LIT>', True)<EOL>attrs.setdefault('<STR_LIT>', True)<EOL>attrs.setdefault('<STR_LIT>', True)<EOL>return option(*(param_decls or ('<STR_LIT>',)), **attrs)(f)<EOL><DEDENT>return decorator<EOL>
Shortcut for password prompts.

    This is equivalent to decorating a function with :func:`option` with
    the following parameters::

        @click.command()
        @click.option('--password', prompt=True, confirmation_prompt=True,
                      hide_input=True)
        def changeadmin(password):
            pass