サンプル
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