1
0
Fork 0

Replace placeholder environmental variable names with standard postgres PGHOST, PGPORT, PGDATABASE, PGUSER

This commit is contained in:
Darik Gamble 2015-01-06 15:06:27 -05:00
parent 04b656bad6
commit c9b277c01c
1 changed files with 5 additions and 5 deletions

View File

@ -29,14 +29,14 @@ from .key_bindings import pgcli_bindings
_logger = logging.getLogger(__name__)
@click.command()
@click.option('-h', '--host', default='', help='Host address of the '
'postgres database.')
@click.option('-h', '--host', default='', envvar='PGHOST',
help='Host address of the postgres database.')
@click.option('-p', '--port', default=5432, help='Port number at which the '
'postgres instance is listening.')
@click.option('-U', '--user', prompt=True, envvar='USER', help='User name to '
'postgres instance is listening.', envvar='PGPORT')
@click.option('-U', '--user', prompt=True, envvar='PGUSER', help='User name to '
'connect to the postgres database.')
@click.option('-W', '--password', is_flag=True, help='Force password prompt.')
@click.argument('database', envvar='USER')
@click.argument('database', envvar='PGDATABASE')
def cli(database, user, password, host, port):
if password:
passwd = click.prompt('Password', hide_input=True, show_default=False,