mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
* add alias for port
* add -s option for daemon process
This commit is contained in:
13
bin/index.js
13
bin/index.js
@ -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)
|
||||
|
Reference in New Issue
Block a user