summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.rst8
-rw-r--r--TODO1
-rwxr-xr-xpgcli/main.py16
3 files changed, 15 insertions, 10 deletions
diff --git a/README.rst b/README.rst
index 39b4ef9b..0af03020 100644
--- a/README.rst
+++ b/README.rst
@@ -125,10 +125,10 @@ Then you can install pgcli:
Thanks:
=======
-A special thanks to `Jonathan Slenders <https://twitter.com/jonathan_s>`_ for creating `Python Prompt Toolkit <https://github.com/jonathanslenders/python-prompt-toolkit>`_, which
-is quite literally the backbone library, that made this app possible. Jonathan
-has also provided valuable feedback and support during the development of this
-app.
+A special thanks to `Jonathan Slenders <https://twitter.com/jonathan_s>`_ for
+creating `Python Prompt Toolkit <http://github.com/jonathanslenders/python-prompt-toolkit>`_, which is quite
+literally the backbone library, that made this app possible. Jonathan has also
+provided valuable feedback and support during the development of this app.
This app includes the awesome `tabulate <https://pypi.python.org/pypi/tabulate>`_ library
for printing the output of tables. The reason for vendoring this library rather than
diff --git a/TODO b/TODO
index 24305571..cddb23e8 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
* [] Check why Indexes have a invalid at the end when \d is called on them.
+* [] Fix smartcompletion for special commands. \d <tab>
* [] Add some tests. Sanity, Unit, Completion, Config.
* [ ] Add tests for smart completion.
* [] Check how to add the name of the table before printing the table.
diff --git a/pgcli/main.py b/pgcli/main.py
index 92a72947..57064c8b 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -25,12 +25,16 @@ from .config import write_default_config, load_config
from .key_bindings import pgcli_bindings
@click.command()
-@click.option('-h', '--host', default='localhost')
-@click.option('-p', '--port', default=5432)
-@click.option('-U', '--user', prompt=True, envvar='USER')
-@click.password_option('-W', '--password', default='',
- confirmation_prompt=False)
-@click.argument('database', envvar='USER')
+@click.option('-h', '--host', default='localhost', 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 '
+ 'connect to the postgres database.')
+@click.password_option('-W', '--password', default='', help='Password if '
+ 'needed.', confirmation_prompt=False)
+@click.argument('database', envvar='USER', help='Name of the database to '
+ 'connect.')
def cli(database, user, password, host, port):
from pgcli import __file__ as package_root