From fc68deae4ac4b9650c17cbeecde10d025ac6b3b9 Mon Sep 17 00:00:00 2001 From: Misha Kaletsky <15040698+mmkal@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:07:18 -0500 Subject: [PATCH] document ts-command-line error handling (#633) closes #619 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ad4d38e0..79fc68a6 100644 --- a/README.md +++ b/README.md @@ -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: