code: def password_prompt(ctx, param, value):
      
      if ctx.resilient_parsing:
          return
  
      if not value:
          if 'password_stdin' in ctx.params:
              with click.open_file('-') as fp:
                  value = fp.read().strip('\n')
          else:
              value = click.prompt('Password', hide_input=True)
  
      click.echo(value)
      return value
docs: Prompt for password if ``--password-stdin`` is not used.