示例
Render optional subcommand brackets [COMMAND] in help usage synopsis when invoke_without_command is True
sha256:04dd9a8db85ce0fa7749296c7117e0e18d713a2ae3fe35ba679b0b969f1231b4
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Render optional subcommand brackets [COMMAND] in help usage synopsis when invoke_without_command is True HOW
- 包
- click 8.4.2
- 环境
- python
- 创建时间
- 2026-08-16T07:54:31Z
契约
- 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
文件
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cli.py
- test/contract.py
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9