Sample
Preserve comma-delimited option values as single arguments in package:args by disabling splitCommas
sha256:524c2bfcd735bb3578e69cc3473ac78c127a42d307b69b9af273346500877f1a
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- dart
- Operating system
- linux
- Architecture
- x64
- Runtime
- dart
- Language
- dart
- Package manager
- pub
Verification-run environments
- Execution context
- dart 3
- Operating system
- linux debian · glibc
- Architecture
- x64
- Runtime
- dart 3
- Language
- dart
- Package manager
- pub
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17
Case
- Goal
- Preserve comma-delimited option values as single arguments in package:args by disabling splitCommas HOW
- Packages
-
args 2.7.0
- Environment
- dart
- Created
- 2026-08-17T03:53:30Z
Commonly assumed
ArgParser.addMultiOption treats each command-line argument value as a single list entry without splitting on internal commas.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- addMultiOption splits comma-separated values into multiple entries by default, requiring splitCommas: false to preserve a single argument such as '--define env=prod,region=us-east' as ['env=prod,region=us-east'].
- assert default addMultiOption parses ['--define', 'env=prod,region=us-east'] into ['env=prod', 'region=us-east']
- assert addMultiOption with splitCommas: false parses ['--define', 'env=prod,region=us-east'] into ['env=prod,region=us-east']
- assert passing CLI options to addMultiOption replaces defaultsTo entirely rather than appending
Files
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- dart 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17 · ed25519:d91480838ac982c9