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 -.