From 5f14338009226bad673b8ea5fb7a06d59dbe41ab Mon Sep 17 00:00:00 2001 From: Matthias Oertel Date: Thu, 3 Mar 2022 16:53:21 +0100 Subject: [PATCH] fix(migrate diff): improve help output alignment (#12135) --- packages/migrate/src/commands/MigrateDiff.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/migrate/src/commands/MigrateDiff.ts b/packages/migrate/src/commands/MigrateDiff.ts index 5f0e92122d7f..74a7a5e01cd4 100644 --- a/packages/migrate/src/commands/MigrateDiff.ts +++ b/packages/migrate/src/commands/MigrateDiff.ts @@ -17,24 +17,24 @@ ${chalk.dim('$')} prisma migrate diff --preview-feature [options] ${chalk.bold('Options')} - -h, --help Display this help message +-h, --help Display this help message ${chalk.italic('From and To inputs (1 `--from-...` and 1 `--to-...` must be provided):')} - --from-url / --to-url A datasource URL - --from-empty / --to-empty Flag to assume from or to is an empty datamodel ---from-schema-datamodel / --to-schema-datamodel Path to a Prisma schema file, uses the datamodel for the diff +--from-url / --to-url A datasource URL +--from-empty / --to-empty Flag to assume from or to is an empty datamodel +--from-schema-datamodel / --to-schema-datamodel Path to a Prisma schema file, uses the datamodel for the diff --from-schema-datasource / --to-schema-datasource Path to a Prisma schema file, uses the datasource url for the diff - --from-migrations / --to-migrations Path to the Prisma Migrate migrations directory +--from-migrations / --to-migrations Path to the Prisma Migrate migrations directory ${chalk.italic('Shadow database (only required if using --from-migrations or --to-migrations):')} - --shadow-database-url URL for the shadow database +--shadow-database-url URL for the shadow database ${chalk.italic('Output format:')} - --script Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB) +--script Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB) ${chalk.bold('Flag')} - --preview-feature Run Preview Prisma commands`, +--preview-feature Run Preview Prisma commands`, ) export class MigrateDiff implements Command {