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

验证回执