This commit is contained in:
Sébastien Chopin 2017-01-20 12:43:48 +01:00
parent 0f6ccd595d
commit e6c3ef11be

View File

@ -14,11 +14,11 @@ var commands = new Set([
var cmd = process.argv[2] var cmd = process.argv[2]
if (commands.has(cmd)) { if (commands.has(cmd)) {
process.argv.splice(2,1) process.argv.splice(2, 1)
} else { } else {
cmd = defaultCommand cmd = defaultCommand
} }
var bin = join(__dirname, 'nuxt-' + cmd) var bin = join(__dirname, 'nuxt-' + cmd)
require(bin); require(bin)