From 4172226750c64241d98e4cac4ce9a7c5c40162ba Mon Sep 17 00:00:00 2001 From: Tre Date: Fri, 20 Sep 2024 16:32:20 +0100 Subject: [PATCH] [FTR] Fixup err msg for `scripts/get_owners_for_file.js` (#193581) ## Summary Follow up of [incorrect wording](https://github.com/elastic/kibana/pull/193277#discussion_r1768630448) --- packages/kbn-code-owners/src/file_code_owner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-code-owners/src/file_code_owner.ts b/packages/kbn-code-owners/src/file_code_owner.ts index f413d7f975df0..525a2964c7338 100644 --- a/packages/kbn-code-owners/src/file_code_owner.ts +++ b/packages/kbn-code-owners/src/file_code_owner.ts @@ -81,7 +81,7 @@ export async function runGetOwnersForFileCli() { run( async ({ flags, log }) => { const targetFile = flags.file as string; - if (!targetFile) throw createFlagError(`Missing --flag argument`); + if (!targetFile) throw createFlagError(`Missing --file argument`); existOrThrow(targetFile); // This call is duplicated in getPathsWithOwnersReversed(), so this is a short circuit const result = getCodeOwnersForFile(targetFile); if (result) log.success(result);