diff --git a/index.js b/index.js index cc6d395..71ea1db 100755 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ yargs require('./src/commands/install') ) .command( - 'run ', + 'run [arguments...]', 'start whack server', {}, require('./src/commands/run') diff --git a/src/commands/run.js b/src/commands/run.js index 886b7eb..5949783 100644 --- a/src/commands/run.js +++ b/src/commands/run.js @@ -17,7 +17,7 @@ module.exports = function run(opts) { commandExists('rsync', (error, rsyncExists) => { if (!error && rsyncExists) { startServer(); - spawn('npm', ['run', opts.npmScript, '--', '--config', cliConfigPath], (code) => { + spawn('npm', ['run', opts.npmScript, '--', '--config', cliConfigPath].concat(opts.arguments || []), (code) => { process.exit(code); });