codesamplex

Sample

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

Case

Goal
Retrieve positional argument default values in Commander via processedArgs or action callbacks rather than program.args when arguments are unset HOW
Packages
commander 13.1.0
Environment
node
Created
2026-08-16T16:14:22Z

Commonly assumed

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

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts