Skip to content

Commit

Permalink
fix(anta.cli): Disable env variable for --help and --version (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Oct 10, 2024
1 parent 2541572 commit 42bfc3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anta/cli/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 42bfc3b

Please sign in to comment.