RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
770 stars 69 forks source link

CLI --help output not printed on individual lines #38

Closed Devvypaws closed 1 year ago

Devvypaws commented 1 year ago

Description

Help info is printed all on one line instead of separate lines, making it difficult to read.

Expected Behavior

npx kysely-codegen --help prints the following

kysely-codegen [options]
   --all              Display all options.
   --camel-case       Use the Kysely CamelCasePlugin.
   --dialect          Set the SQL dialect. (values: [mysql, postgres, sqlite])
…

Actual Behavior

npx kysely-codegen --help instead prints the following

kysely-codegen [options]    --all              Display all options.   --camel-case       Use the Kysely CamelCasePlugin.   --dialect          Set the SQL dialect. (values: [mysql, postgres, sqlite]) …

Additional Details

It appears to be a regression that happened in b749a677e6bfd7370559767e57e4c69746898f94, where logger.info was replaced with console.info, but newlines weren't added.

RobinBlomberg commented 1 year ago

Oh wow. Thanks, and good catch! Fixed in kysely-codegen@0.7.2. ✨