diff --git a/src/commands/diff.ts b/src/commands/diff.ts index 009e00911e9..078825f56cb 100644 --- a/src/commands/diff.ts +++ b/src/commands/diff.ts @@ -76,6 +76,12 @@ export default class Diff extends Command { checkAndWarnFalseFlag(outputFormat, markdownSubtype); markdownSubtype = setDefaultMarkdownSubtype(outputFormat, markdownSubtype) as string; + this.metricsMetadata.output_format = outputFormat; + this.metricsMetadata.output_type = outputType; + if (outputFormat === 'md') { + this.metricsMetadata.output_markdown_subtype = flags['markdownSubtype']; + } + try { firstDocument = await load(firstDocumentPath);