From 0ecd0998d2deae569c6212b37cfa2afac5059a40 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Mon, 3 Dec 2018 06:03:59 +0800 Subject: [PATCH] feat($cli): allow unknown options in dev and build command --- packages/@vuepress/cli/index.js | 2 ++ 1 file changed, 2 insertions(+) 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')