0
我試圖找出如何記錄和別名設置了一個param,它沒有價值與yargs
Yargs記錄標誌
我想要做的是別名-c
到--compile
並能夠記錄--compile
。如果--compile
script sources -c
,我希望它是這樣的
但是,調用script sources -c
會產生錯誤
TypeError: Cannot read property 'newAliases' of undefined
at Object.self.help (/home/gyeates/code/lodash.modularize/node_modules/yargs/lib/usage.js:135:45)
at Object.self.showHelp (/home/gyeates/code/lodash.modularize/node_modules/yargs/lib/usage.js:211:29)
at Object.Argv.self.showHelp (/home/gyeates/code/lodash.modularize/node_modules/yargs/index.js:303:15)
at Object.self.fail (/home/gyeates/code/lodash.modularize/node_modules/yargs/lib/usage.js:37:39)
謝謝,我覺得啞巴 – megawac 2015-03-25 15:58:46