示例
Pass a string option name to Option.implies() to imply boolean options without string key decomposition
sha256:5c6d27a5983a0c5c7ab82d8867250554602d63b07860b3cdacd2dcd58f498252
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Pass a string option name to Option.implies() to imply boolean options without string key decomposition HOW
- 包
- commander 10.0.1
- 环境
- node
- 创建时间
- 2026-08-16T07:26:10Z
契约
- create a Command and configure an Option with string shorthand in .implies()
- parse user arguments containing the triggering option flag
- assert the implied boolean option is true in opts()
- assert opts() is not polluted with decomposed string index keys
- assert options remain unset when the triggering option is omitted
- assert target option functions independently when passed directly
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9