diff --git a/bin/vuepress.js b/bin/vuepress.js index 1f6c35da3e..36433168e6 100755 --- a/bin/vuepress.js +++ b/bin/vuepress.js @@ -27,8 +27,9 @@ program .description('start development server') .option('-p, --port ', 'use specified port (default: 8080)') .option('-h, --host ', 'use specified host (default: 0.0.0.0)') - .action((dir = '.', { host, port }) => { - wrapCommand(dev)(path.resolve(dir), { host, port }) + .option('--debug', 'start development server in debug mode') + .action((dir = '.', { host, port, debug }) => { + wrapCommand(dev)(path.resolve(dir), { host, port, debug }) }) program