Skip to content

Commit 0ecd099

Browse files
committed
feat($cli): allow unknown options in dev and build command
1 parent 246ef8d commit 0ecd099

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vuepress/cli/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ exports.bootstrap = function ({
4141

4242
cli
4343
.command('dev [targetDir]', 'start development server')
44+
.allowUnknownOptions()
4445
.option('-p, --port <port>', 'use specified port (default: 8080)')
4546
.option('-t, --temp <temp>', 'set the directory of the temporary file')
4647
.option('-c, --cache [cache]', 'set the directory of cache')
@@ -73,6 +74,7 @@ exports.bootstrap = function ({
7374

7475
cli
7576
.command('build [targetDir]', 'build dir as static site')
77+
.allowUnknownOptions()
7678
.option('-d, --dest <dest>', 'specify build output dir (default: .vuepress/dist)')
7779
.option('-t, --temp <temp>', 'set the directory of the temporary file')
7880
.option('-c, --cache [cache]', 'set the directory of cache')

0 commit comments

Comments
 (0)