diff --git a/packages/@vuepress/cli/index.js b/packages/@vuepress/cli/index.js index d10d102c7a..371ac2a032 100644 --- a/packages/@vuepress/cli/index.js +++ b/packages/@vuepress/cli/index.js @@ -41,6 +41,7 @@ exports.bootstrap = function ({ cli .command('dev [targetDir]', 'start development server') + .allowUnknownOptions() .option('-p, --port ', 'use specified port (default: 8080)') .option('-t, --temp ', 'set the directory of the temporary file') .option('-c, --cache [cache]', 'set the directory of cache') @@ -73,6 +74,7 @@ exports.bootstrap = function ({ cli .command('build [targetDir]', 'build dir as static site') + .allowUnknownOptions() .option('-d, --dest ', 'specify build output dir (default: .vuepress/dist)') .option('-t, --temp ', 'set the directory of the temporary file') .option('-c, --cache [cache]', 'set the directory of cache')