diff --git a/.changeset/kind-ducks-compare.md b/.changeset/kind-ducks-compare.md new file mode 100644 index 0000000..b3c6536 --- /dev/null +++ b/.changeset/kind-ducks-compare.md @@ -0,0 +1,5 @@ +--- +"@arethetypeswrong/cli": patch +--- + +Fix warning message json-format suggestion to use proper syntax diff --git a/packages/cli/src/render/typed.ts b/packages/cli/src/render/typed.ts index eb17079..f2b10fd 100644 --- a/packages/cli/src/render/typed.ts +++ b/packages/cli/src/render/typed.ts @@ -49,7 +49,7 @@ export async function typed( const summaryTexts = Object.keys(grouped).map((kind) => { const info = problemKindInfo[kind as core.ProblemKind]; const description = marked( - `${info.description}${info.details ? ` Use \`--json\` to see ${info.details}.` : ""} ${info.docsUrl}`, + `${info.description}${info.details ? ` Use \`-f json\` to see ${info.details}.` : ""} ${info.docsUrl}`, ); return `${emoji ? `${info.emoji} ` : ""}${description}`; });