Sample
A command-line multi-option with commas silently changes list shape unless splitCommas is disabled.
sha256:c4848fa6a17e188be69e746743438f0fa0de342090bbb63b8dbc7dab291217fb
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- A command-line multi-option with commas silently changes list shape unless splitCommas is disabled. HOW
- Packages
- args 2.7.0
- Environment
- dart
- Created
- 2026-08-17T02:03:15Z
Commonly assumed
A multi-option should keep each argument token as one string unless parsing rules are explicitly changed.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- ArgParser.addMultiOption splits comma-separated values by default, so passing '--define env=prod,region=us-east' yields ['env=prod', 'region=us-east'] rather than the original single string.
- Setting splitCommas: false for addMultiOption preserves '--define env=prod,region=us-east' as one list entry.
Files
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-16 · ed25519:d91480838ac982c9