CodeSampleX

Sample

Prevent negative number option parsing failures in Commander when registering digit short option flags

sha256:e84a5f7f9b0e235218dd1ae017a1fdba5fdf2fce9c93b2143bdf8d153a9953fc

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prevent negative number option parsing failures in Commander when registering digit short option flags HOW
Packages
commander 15.0.0
Environment
node
Created
2026-08-17T01:48:52Z

Commonly assumed

An option configured with an optional value accepts negative numbers like -1 as its argument regardless of what other short option flags are registered on the command.

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