codesamplex

Exemple

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

Cas

Objectif
Retrieve positional argument default values in Commander via processedArgs or action callbacks rather than program.args when arguments are unset HOW
Paquets
commander 13.1.0
Environnement
node
Créé
2026-08-16T16:14:22Z

Ce que l'on suppose souvent

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

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