diff options
author | Alexandr Korsak <alex.korsak@gmail.com> | 2018-06-15 09:07:32 +0300 |
---|---|---|
committer | Alexandr Korsak <alex.korsak@gmail.com> | 2018-06-15 09:07:32 +0300 |
commit | 4963e34c3a8bf655b51c2fa8f68e2354671cee2a (patch) | |
tree | 843868f9996e9feae06ad94407923531aac1dd83 /pgcli | |
parent | 3fbe8e7cb3ca57fd8656890ea7855da62d2ea03e (diff) |
add compatible --user like psql command
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 10e841cb..685493b4 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -890,6 +890,8 @@ class PGCli(object): 'postgres instance is listening.', envvar='PGPORT', type=click.INT) @click.option('-U', '--username', 'username_opt', envvar='PGUSER', help='Username to connect to the postgres database.') +@click.option('--user', 'username_opt', envvar='PGUSER', + help='Username to connect to the postgres database.') @click.option('-W', '--password', 'prompt_passwd', is_flag=True, default=False, help='Force password prompt.') @click.option('-w', '--no-password', 'never_prompt', is_flag=True, |