Skip to content

Commit 878d48e

Browse files
authored
Bandaid-Fix StrEnum option defaults (#327)
1 parent b4d99cc commit 878d48e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Fixed
1313

1414
- Session file permission checking ignoring config option `app.allow_insecure_auth_file`.
15+
- `show_config` & `update_config` `--secrets` default throwing an error on Click>8.2.0.
1516

1617
## [3.6.1](https://github.com/unioslo/zabbix-cli/tree/3.6.1) - 2025-12-10
1718

zabbix_cli/commands/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ def sample_config(ctx: typer.Context) -> None:
342342
def show_config(
343343
ctx: typer.Context,
344344
secrets: SecretMode = typer.Option(
345-
SecretMode.MASK, "--secrets", help="Display mode for secrets."
345+
SecretMode.MASK,
346+
"--secrets",
347+
help="Display mode for secrets.",
348+
case_sensitive=False,
346349
),
347350
) -> None:
348351
"""Show the current application configuration."""
@@ -388,6 +391,7 @@ def update_config(
388391
"--secrets",
389392
help="DEPRECATED: Visibility mode for secrets.",
390393
hidden=True,
394+
case_sensitive=False,
391395
),
392396
force: bool = typer.Option(False, "--force", help="Skip confirmation prompt."),
393397
) -> None:

0 commit comments

Comments
 (0)