CodeSampleX

サンプル

Verify how missing mandatory options behave differently depending on whether they have a registered callback.

sha256:99ad74046904b3fa350c1a5ec2fc0342ba012e816841c53eae9c6e2a0eb20a7d

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Verify how missing mandatory options behave differently depending on whether they have a registered callback. HOW
パッケージ
args 2.7.0
環境
dart
作成日
2026-08-17T02:02:59Z

よくある思い込み

ArgParser.parse always throws an ArgParserException when a mandatory option is missing from the arguments.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート