Skip to content

Commit

Permalink
docs: migration guide fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattallty committed May 23, 2020
1 parent bbf2e36 commit 401a0a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Just use the `@caporal/core` package instead of `caporal`:

If using require, please use one of the following ways:

````js
const { program } = require("@caporal/core");
```js
const { program } = require("@caporal/core")

// OR
const program = require("@caporal/core").default;
const program = require("@caporal/core").default
```

## Breaking changes
Expand All @@ -33,7 +33,7 @@ All optional properties are now part of a third parameter object.
```diff
- .option(synopsis, description, [validator, [defaultValue, [required]])
+ .option(synopsis, description, { validator, default, required })
````
```

### `.argument()` signature change

Expand Down

0 comments on commit 401a0a6

Please sign in to comment.