disaply default values in help
This commit is contained in:
parent
e18ce97d66
commit
ca95250f2e
|
@ -85,6 +85,7 @@ def configure(ctx: click.Context, param: str, filename: str) -> None:
|
||||||
multiple=True,
|
multiple=True,
|
||||||
default=["http://127.0.0.1:8008"],
|
default=["http://127.0.0.1:8008"],
|
||||||
help="API endpoint. Can be specified multiple times.",
|
help="API endpoint. Can be specified multiple times.",
|
||||||
|
show_default=True,
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--cert_file",
|
"--cert_file",
|
||||||
|
@ -111,6 +112,7 @@ def configure(ctx: click.Context, param: str, filename: str) -> None:
|
||||||
count=True,
|
count=True,
|
||||||
default=0,
|
default=0,
|
||||||
help="Increase verbosity -v (info)/-vv (warning)/-vvv (debug)",
|
help="Increase verbosity -v (info)/-vv (warning)/-vvv (debug)",
|
||||||
|
show_default=False,
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
"--version", is_flag=True, callback=print_version, expose_value=False, is_eager=True
|
"--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,
|
default=2,
|
||||||
type=int,
|
type=int,
|
||||||
help="Timeout in seconds for the API queries (0 to disable)",
|
help="Timeout in seconds for the API queries (0 to disable)",
|
||||||
|
show_default=True,
|
||||||
)
|
)
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
@nagiosplugin.guarded
|
@nagiosplugin.guarded
|
||||||
|
|
Loading…
Reference in a new issue