diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | changelog.rst | 7 | ||||
-rw-r--r-- | pgcli/main.py | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -86,6 +86,7 @@ Contributors: * Kenny Do * Max Rothman * Daniel Egger + * Ignacio Campabadal Creator: -------- diff --git a/changelog.rst b/changelog.rst index e15e48e6..67256658 100644 --- a/changelog.rst +++ b/changelog.rst @@ -1,6 +1,11 @@ Upcoming: ========= +Features: +--------- + +* Allows passing the ``-u`` flag to specify a username. (Thanks: `Ignacio Campabadal`_) + Internal: --------- @@ -23,7 +28,7 @@ Internal: * Clean up and add behave logging. (Thanks: `Dick Marinus`_) * Require prompt_toolkit>=2.0.6. (Thanks: `Dick Marinus`_) -* Improve development guide (Thanks: `Ignacio Campabadal`_) +* Improve development guide. (Thanks: `Ignacio Campabadal`_) 2.0.0: ====== diff --git a/pgcli/main.py b/pgcli/main.py index c25c7617..bb80e787 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -942,7 +942,7 @@ class PGCli(object): @click.option('-p', '--port', default=5432, help='Port number at which the ' 'postgres instance is listening.', envvar='PGPORT', type=click.INT) @click.option('-U', '--username', 'username_opt', help='Username to connect to the postgres database.') -@click.option('--user', 'username_opt', help='Username to connect to the postgres database.') +@click.option('-u', '--user', 'username_opt', 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, |