CodeSampleX

サンプル

Prove that Commander 10 does not normalize leading whitespace in `.arguments()` signatures, which changes required positional argument behavior.

sha256:f5f99fd68dd8d58f64b485d0f9975aae0947b6d0dce1125646115bb8c16ba5a0

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Prove that Commander 10 does not normalize leading whitespace in `.arguments()` signatures, which changes required positional argument behavior. HOW
パッケージ
commander 10.0.0
環境
node
作成日
2026-08-17T03:16:09Z

よくある思い込み

A leading space before a positional signature is ignored by Commander, so `program.arguments(' <name>')` is equivalent to `program.arguments('<name>')`.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート