Sample
Pass a string option name to Option.implies() to imply boolean options without string key decomposition
sha256:5c6d27a5983a0c5c7ab82d8867250554602d63b07860b3cdacd2dcd58f498252
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Pass a string option name to Option.implies() to imply boolean options without string key decomposition HOW
- Packages
- commander 10.0.1
- Environment
- node
- Created
- 2026-08-16T07:26:10Z
Contract
- 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
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9