From 42538a8c3672f31acaea80e7c57d7907c3ed9319 Mon Sep 17 00:00:00 2001 From: gmuloc Date: Thu, 10 Oct 2024 15:55:42 +0200 Subject: [PATCH] Fix(anta.cli): Disable env variable for --help and --version --- anta/cli/_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anta/cli/_main.py b/anta/cli/_main.py index d70f1cf56..ae4e050f7 100644 --- a/anta/cli/_main.py +++ b/anta/cli/_main.py @@ -25,7 +25,8 @@ @click.group(cls=AliasedGroup) @click.pass_context -@click.version_option(__version__) +@click.help_option(allow_from_autoenv=False) +@click.version_option(__version__, allow_from_autoenv=False) @click.option( "--log-file", help="Send the logs to a file. If logging level is DEBUG, only INFO or higher will be sent to stdout.",