diff options
author | laixintao <laixintaoo@gmail.com> | 2022-07-24 11:57:36 +0800 |
---|---|---|
committer | laixintao <laixintaoo@gmail.com> | 2022-07-24 11:57:36 +0800 |
commit | 73a7697d784a0b862c4a788a3d4be6f359140eb2 (patch) | |
tree | e2775bd91062a32e84b7246e40d8c95480e078d1 | |
parent | b33db99873201ac3a2b2ae487bc457722bb14d58 (diff) |
default db number should be zero instead of None.aymericbeaumet-aymeric/custom-prompt
otherwist the prompt will show `None` as db name, which is ugly.
-rw-r--r-- | iredis/entry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iredis/entry.py b/iredis/entry.py index 2bbc7c8..3ff7c7c 100644 --- a/iredis/entry.py +++ b/iredis/entry.py @@ -248,7 +248,7 @@ PAGER_HELP = """Using pager when output is too tall for your window, default to "-s", "--socket", default=None, help="Server socket (overrides hostname and port)." ) @click.option( - "-n", help="Database number.(overwrites dsn/url's db number)", default=None + "-n", help="Database number.(overwrites dsn/url's db number)", default=0 ) @click.option("-a", "--password", help="Password to use when connecting to the server.") @click.option("--url", default=None, envvar="IREDIS_URL", help=URL_HELP) |