Ejemplo
Configure Click command hierarchies via context_settings default_map and auto_envvar_prefix without silent fallback failures
sha256:098e69316075a12c6969f7a4a0129fa84a756444f787606cbf7be1421fce8d99
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Configure Click command hierarchies via context_settings default_map and auto_envvar_prefix without silent fallback failures HOW
- Paquetes
- click 8.4.2
- Entorno
- python
- Creado
- 2026-08-17T03:18:53Z
Contrato
- auto_envvar_prefix generates nested uppercase snake_case envvars (PREFIX_GROUP_SUBCMD_OPTION) across all subcommands, silently ignoring flattened prefixes or kebab-case envvars
- default_map keys require CLI command names (kebab-case) for subcommand nesting hierarchy, but Python parameter identifiers (snake_case) for option keys
- default_map with snake_case command keys or kebab-case option keys is silently ignored and falls back to option defaults
- explicit envvar parameter overrides auto_envvar_prefix while retaining auto_envvar_prefix as a fallback when the explicit envvar is unset
- configuration resolution follows strict precedence: CLI argument > explicit envvar > auto_envvar_prefix > default_map > option default
Archivos
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9