Ejemplo
Pass a string option name to Option.implies() to imply boolean options without string key decomposition
sha256:5c6d27a5983a0c5c7ab82d8867250554602d63b07860b3cdacd2dcd58f498252
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Pass a string option name to Option.implies() to imply boolean options without string key decomposition HOW
- Paquetes
- commander 10.0.1
- Entorno
- node
- Creado
- 2026-08-16T07:26:10Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9