Skip to content

Commit

Permalink
feat($cli): allow unknown options in dev and build command
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Dec 2, 2018
1 parent 246ef8d commit 0ecd099
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vuepress/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports.bootstrap = function ({

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

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

0 comments on commit 0ecd099

Please sign in to comment.