Exemplo
Render optional subcommand brackets [COMMAND] in help usage synopsis when invoke_without_command is True
sha256:04dd9a8db85ce0fa7749296c7117e0e18d713a2ae3fe35ba679b0b969f1231b4
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Render optional subcommand brackets [COMMAND] in help usage synopsis when invoke_without_command is True HOW
- Pacotes
- click 8.4.2
- Ambiente
- python
- Criado
- 2026-08-16T07:54:31Z
Contrato
- assert a Group with invoke_without_command=True renders [COMMAND] as optional in its usage help synopsis
- assert a standard Group with invoke_without_command=False renders COMMAND as required in its usage help synopsis
- assert invoke_without_command=True executes the root group callback when invoked without subcommands
- assert invoke_without_command=False exits with usage error code 2 when invoked without subcommands
Arquivos
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cli.py
- test/contract.py
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9