codesamplex

示例

Retrieve positional argument default values in Commander via processedArgs or action callbacks rather than program.args when arguments are unset

sha256:3fc59d6ae2df342949bb6f6c09dcdc027cda2183237046c0189f6cabfae569e9

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Retrieve positional argument default values in Commander via processedArgs or action callbacks rather than program.args when arguments are unset HOW
commander 13.1.0
环境
node
创建时间
2026-08-16T16:14:22Z

常见的想当然

Configuring an optional argument with a default value populates program.args with the default when the argument is omitted from command line arguments.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执