def prompt_pass(name, default=None):

    prompt = name + (default and ' [%s]' % default or '')
    prompt += name.endswith('?') and ' ' or ': '
    while True:
        rv = getpass.getpass(prompt)
        if rv:
            return rv
        if default is not None:
            return default
Grabs hidden (password) input from command line.
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/flask_script/cli.py/prompt_pass