Skip to content

Commit

Permalink
document ts-command-line error handling (#633)
Browse files Browse the repository at this point in the history
closes #619
  • Loading branch information
mmkal committed Nov 6, 2023
1 parent 8b9fded commit fc68dea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -601,6 +601,8 @@ if (require.main === module) {
}
```

Note that this uses the [@rushstack/ts-command-line](https://www.npmjs.com/package/@rushstack/ts-command-line) package, which shows only the top-level message of any errors throw by default. See [here](https://github.com/sequelize/umzug/issues/619#issuecomment-1793297576) for how you can see a full stack trace.

#### CLI Usage

A script like the one above is now a runnable CLI program. You can run `node migrator.js --help` to see how to use it. It will print something like:
Expand Down

0 comments on commit fc68dea

Please sign in to comment.