CodeSampleX

Пример

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

Кейс

Цель
Ensure option-like arguments and the double-dash separator after a positional argument are treated as literal positional arguments when allowTrailingOptions is disabled HOW
Пакеты
args 2.7.0
Окружение
dart
Создан
2026-08-17T02:02:58Z

Что обычно предполагают

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.

Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.

Контракт

Файлы

Скачать проверенный артефакт (tar.gz) — те самые байты, на которых выполнялся контракт

Исходный сидер

csx-seed

Квитанции проверки