Exemple
args mandatory validation happens on retrieval rather than on parse
sha256:d550e6fa19ab4b9a4d9b149a8c87ac6a7f2ec5a77825cb4cde684933e0fd1b54
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- args mandatory validation happens on retrieval rather than on parse HOW
- Paquets
- args 2.7.0
- Environnement
- dart
- Créé
- 2026-08-17T03:18:28Z
Ce que l'on suppose souvent
ArgParser.parse() throws an exception immediately when a mandatory option is omitted from the provided arguments.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- ArgParser.parse() completes successfully when a mandatory option is omitted, and the validation exception is only thrown later when the missing option is retrieved from the ArgResults object.
Fichiers
- NOTES.md
- csx.json
- pubspec.lock
- pubspec.yaml
- test/contract.dart
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17 · ed25519:d91480838ac982c9