yargs/yargs

create module for handling complex option strings, e.g., npm foo -- --foo --bar

Fermée

#911 ouverte le 6 juil. 2017

 (7 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 053 forks)batch import
Help Wantedenhancementquestion

Métriques du dépôt

Stars
 (10 829 étoiles)
Métriques de merge PR
 (Merge moyen 113j 19h) (11 PRs mergées en 30 j)

Description

npm run allows you to pass arguments to the script you run by putting them after a double dash:

npm run myscript -- --foo --bar

How can I get the position of the -- with yargs? Yargs doesn't put it in the argv._ it returns, presumably because it begins with -.

Guide contributeur