From 42743347aba141de81c506915ec3b20faba9a011 Mon Sep 17 00:00:00 2001 From: Gago Date: Sat, 18 Mar 2023 22:17:43 -0400 Subject: [PATCH] Making `--use-root-maintainers` available via CLI (#345) It was reported that `--use-root-maintainers` is not explicitly available via the CLI. This PR should solved that, and close #344 --- src/bin/cli.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/cli.ts b/src/bin/cli.ts index a0c3c683..1a07b626 100644 --- a/src/bin/cli.ts +++ b/src/bin/cli.ts @@ -19,6 +19,11 @@ program 'For every package.json found, generate a CODEOWNERS entry using the maintainers field', false ) + .option( + '--use-root-maintainers', + 'It will use `maintainers` field from the package.json in the root to generate default codeowners. Works only in conjunction with `useMaintainers`', + false + ) .option( '--group-source-comments', 'Instead of generating one comment per rule, enabling this flag will group them, reducing comments to one per source file. Useful if your codeowners file gets too noisy',