CodeSampleX

Beispiel

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

Fall

Ziel
Ensure option-like arguments and the double-dash separator after a positional argument are treated as literal positional arguments when allowTrailingOptions is disabled HOW
Pakete
args 2.7.0
Umgebung
dart
Erstellt
2026-08-17T02:02:58Z

Häufige Annahme

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.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege