From e1ea7799eabc4083fc463a3b8e08850b56967577 Mon Sep 17 00:00:00 2001 From: Conny Brunnkvist Date: Sun, 1 Mar 2026 21:51:34 +0700 Subject: [PATCH] feat(cli): add -F short alias for --filter (#10821) --- .changeset/add-filter-short-alias.md | 6 ++++++ cli/common-cli-options-help/src/index.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changeset/add-filter-short-alias.md diff --git a/.changeset/add-filter-short-alias.md b/.changeset/add-filter-short-alias.md new file mode 100644 index 0000000000..39bf427a16 --- /dev/null +++ b/.changeset/add-filter-short-alias.md @@ -0,0 +1,6 @@ +--- +"@pnpm/common-cli-options-help": patch +"pnpm": patch +--- + +Added `-F` as a short alias for the `--filter` option in the help output. diff --git a/cli/common-cli-options-help/src/index.ts b/cli/common-cli-options-help/src/index.ts index 6a78e571fa..54ca17037d 100644 --- a/cli/common-cli-options-help/src/index.ts +++ b/cli/common-cli-options-help/src/index.ts @@ -72,6 +72,7 @@ export const FILTERING = { { description: 'Restricts the scope to package names matching the given pattern. E.g.: foo, "@bar/*"', name: '--filter ', + shortAlias: '-F', }, { description: 'Includes all direct and indirect dependencies of the matched packages. E.g.: foo...',