def password_option(*param_decls, **attrs):
    def decorator(f):
        attrs.setdefault('prompt', True)
        attrs.setdefault('confirmation_prompt', True)
        attrs.setdefault('hide_input', True)
        return option(*(param_decls or ('--password',)), **attrs)(f)
    return decorator
Shortcut for password prompts.
dataset/ETHPy150Open pallets/click/click/decorators.py/password_option