Skip to content

Commit

Permalink
docs: tweak outdate
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Dec 12, 2018
1 parent df3b636 commit d29e1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/docs/docs/plugin/option-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ Then, VuePress will automatically inject these components behind the layout comp
</div>
```

## registerCommand
## extendCli

- Type: `function`
- Default: `undefined`
Expand All @@ -443,7 +443,7 @@ Register a extra command to enhance the CLI of vuepress. The function will be ca

```js
module.exports = {
registerCommand (cli) {
extendCli (cli) {
cli
.command('info [targetDir]', '')
.option('--debug', 'display info in debug mode')
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/zh/plugin/option-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ VuePress 将会自动将这些组件注入到布局组件的隔壁:
</div>
```

## registerCommand
## extendCli

- 类型: `function`
- 默认值: `undefined`
Expand All @@ -445,7 +445,7 @@ VuePress 将会自动将这些组件注入到布局组件的隔壁:

```js
module.exports = {
registerCommand (cli) {
extendCli (cli) {
cli
.command('info [targetDir]', '')
.option('--debug', 'display info in debug mode')
Expand Down

0 comments on commit d29e1b1

Please sign in to comment.