1
df4VW 2016-03-17 05:45:47 +08:00
|
2
narcotics 2016-03-17 09:48:52 +08:00
[https://www.npmjs.com/package/yargs]( https://www.npmjs.com/package/yargs)
``` //app was wrapped by electron.exe, so slice the first argument(electron.exe's path) var argv = require('yargs').parse(process.argv.slice(1)); var date = argv.date; //.... ``` |
4
narcotics 2016-03-18 09:18:38 +08:00
|