CodeSampleX

Exemple

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

sha256:e84a5f7f9b0e235218dd1ae017a1fdba5fdf2fce9c93b2143bdf8d153a9953fc

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Prevent negative number option parsing failures in Commander when registering digit short option flags HOW
Paquets
commander 15.0.0
Environnement
node
Créé
2026-08-17T01:48:52Z

Ce que l'on suppose souvent

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.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification