From ca95250f2e25e73e175fdeecc430aadeb3113d23 Mon Sep 17 00:00:00 2001 From: benoit Date: Fri, 10 Sep 2021 09:14:19 +0200 Subject: [PATCH] disaply default values in help --- check_patroni/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_patroni/cli.py b/check_patroni/cli.py index 40b4f0f..e2e57bb 100644 --- a/check_patroni/cli.py +++ b/check_patroni/cli.py @@ -85,6 +85,7 @@ def configure(ctx: click.Context, param: str, filename: str) -> None: multiple=True, default=["http://127.0.0.1:8008"], help="API endpoint. Can be specified multiple times.", + show_default=True, ) @click.option( "--cert_file", @@ -111,6 +112,7 @@ def configure(ctx: click.Context, param: str, filename: str) -> None: count=True, default=0, help="Increase verbosity -v (info)/-vv (warning)/-vvv (debug)", + show_default=False, ) @click.option( "--version", is_flag=True, callback=print_version, expose_value=False, is_eager=True @@ -121,6 +123,7 @@ def configure(ctx: click.Context, param: str, filename: str) -> None: default=2, type=int, help="Timeout in seconds for the API queries (0 to disable)", + show_default=True, ) @click.pass_context @nagiosplugin.guarded