CodeSampleX

Sample

Handle unprovided multi-options when explicitly setting defaultsTo to null

sha256:6336a9211912d77dc7e7126ddc7997c3e53e58dc13a1da250530ae1dea82f0ba

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Handle unprovided multi-options when explicitly setting defaultsTo to null HOW
Packages
args 2.7.0
Environment
dart
Created
2026-08-17T02:04:08Z

Commonly assumed

Setting defaultsTo to null in ArgParser.addMultiOption causes the parsed result to be null if the option is left unset, allowing callers to distinguish an absent option from one given with no values.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts