mirror of https://github.com/dbcli/pgcli
Add help strings to click options.
This commit is contained in:
parent
82c0f5649e
commit
1f3252575e
|
@ -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
|
||||
|
|
1
TODO
1
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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue