mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-26 18:56:55 +00:00
30 lines
644 B
JavaScript
30 lines
644 B
JavaScript
import consola from 'consola'
|
|
|
|
export default {
|
|
port: {
|
|
alias: 'p',
|
|
type: 'string',
|
|
description: 'Port number on which to start the application',
|
|
prepare(cmd, options, argv) {
|
|
if (argv.port) {
|
|
options.server.port = +argv.port
|
|
}
|
|
}
|
|
},
|
|
hostname: {
|
|
alias: 'H',
|
|
type: 'string',
|
|
description: 'Hostname on which to start the application',
|
|
prepare(cmd, options, argv) {
|
|
if (argv.hostname === '') {
|
|
consola.fatal('Provided hostname argument has no value')
|
|
}
|
|
}
|
|
},
|
|
'unix-socket': {
|
|
alias: 'n',
|
|
type: 'string',
|
|
description: 'Path to a UNIX socket'
|
|
}
|
|
}
|