CodeSampleX

Exemple

Ensure option-like arguments and the double-dash separator after a positional argument are treated as literal positional arguments when allowTrailingOptions is disabled

sha256:a8903858356386356972e088af4cc88ca064369aeb6c21d7e9db1fade9205dad

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Ensure option-like arguments and the double-dash separator after a positional argument are treated as literal positional arguments when allowTrailingOptions is disabled HOW
Paquets
args 2.7.0
Environnement
dart
Créé
2026-08-17T02:02:58Z

Ce que l'on suppose souvent

When allowTrailingOptions is false, option-like arguments after the first positional argument still trigger validation, and the double-dash separator is consumed as a special token.

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

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification