yargs/yargs
create module for handling complex option strings, e.g., npm foo -- --foo --bar
Fermée
#911 ouverte le 6 juil. 2017
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 -.