mirror of https://github.com/dbcli/pgcli
Replace placeholder environmental variable names with standard postgres PGHOST, PGPORT, PGDATABASE, PGUSER
This commit is contained in:
parent
04b656bad6
commit
c9b277c01c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue