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

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 .