yargs/yargs
create module for handling complex option strings, e.g., npm foo -- --foo --bar
已关闭
#911 创建于 2017年7月6日
Help Wantedenhancementquestion
仓库指标
- 星标
- (10,829 个星标)
- PR 合并指标
- (平均合并 113天 19小时) (30 天内合并 11 个 PR)
描述
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 -.