summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnže Pečar <ensmotko@gmail.com>2016-06-02 18:37:09 -0700
committerAnže Pečar <ensmotko@gmail.com>2016-06-02 18:37:23 -0700
commit89d5c0110135fa4d2f33aabeca3ae9be6baf207f (patch)
treed94a797b1423191b8e7cddb9ad2dc8e47f7545ed
parent302d425609b9bfe1e259b6d688edf5b26364966d (diff)
Add type to row_limit click option
-rwxr-xr-xpgcli/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index c13f5931..0a75a0ed 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -659,7 +659,7 @@ class PGCli(object):
envvar='PGCLIRC', help='Location of pgclirc file.')
@click.option('-D', '--dsn', default='', envvar='DSN',
help='Use DSN configured into the [alias_dsn] section of pgclirc file.')
-@click.option('-R', '--row-limit', default=None, envvar='PGROWLIMIT',
+@click.option('-R', '--row-limit', default=None, envvar='PGROWLIMIT', type=click.INT,
help='Set threshold for row limit prompt. Use 0 to disable prompt.')
@click.argument('database', default=lambda: None, envvar='PGDATABASE', nargs=1)
@click.argument('username', default=lambda: None, envvar='PGUSER', nargs=1)