샘플
Prevent silent boolean option default regression in Commander 15 by accounting for paired positive/negative flags remaining undefined instead of defaulting to true like lone negated flags
sha256:e9734b35dd9bf261570327aa6767cba61b29225dbb1b6eebc59d47cb344f1141
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Prevent silent boolean option default regression in Commander 15 by accounting for paired positive/negative flags remaining undefined instead of defaulting to true like lone negated flags HOW
- 패키지
- commander 15.0.0
- 환경
- node
- 생성일
- 2026-08-16T07:26:06Z
컨트랙트
- assert lone negated option (--no-cache) defaults opts().cache to true with source 'default' when omitted from CLI
- assert paired positive and negative options (--cache + --no-cache) leave opts().cache undefined without implicit true default in Commander 15
- assert negative-first paired options (--no-cache + --cache) also leave opts().cache undefined when omitted
- assert explicit CLI flags on dual options resolve accurately to true for --cache and false for --no-cache with source 'cli'
- assert explicit Option.default(true) is required on paired options to restore default true behavior in Commander 15
- assert action handler callback receives undefined for omitted dual options
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- 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