* add alias for port

* add -s option for daemon process
This commit is contained in:
jarvys
2014-07-02 21:02:59 +08:00
parent 600980c2c4
commit 23a7cd1689
2 changed files with 32 additions and 20 deletions

View File

@ -6,6 +6,15 @@ var cli = require('../src/cli')
var notifier = updateNotifier({packagePath: '../package'})
if (notifier.update) notifier.notify()
var argv = minimist(process.argv.slice(2))
var argv = minimist(process.argv.slice(2), {
boolean: ["silent"],
alias: {
'p': 'port',
's': 'silent'
},
default: {
silent: false
}
})
cli.run(argv)
cli.run(argv)