Add short flag for --filter (#16058)

This commit is contained in:
Dylan Conway
2025-01-02 15:53:45 -08:00
committed by GitHub
parent d714943d87
commit a85bd42989
3 changed files with 3 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ pub const Arguments = struct {
};
const auto_or_run_params = [_]ParamType{
clap.parseParam("--filter <STR>... Run a script in all workspace packages matching the pattern") catch unreachable,
clap.parseParam("-F, --filter <STR>... Run a script in all workspace packages matching the pattern") catch unreachable,
clap.parseParam("-b, --bun Force a script or package to use Bun's runtime instead of Node.js (via symlinking node)") catch unreachable,
clap.parseParam("--shell <STR> Control the shell used for package.json scripts. Supports either 'bun' or 'system'") catch unreachable,
};

View File

@@ -9573,7 +9573,7 @@ pub const PackageManager = struct {
const outdated_params: []const ParamType = &(shared_params ++ [_]ParamType{
// clap.parseParam("--json Output outdated information in JSON format") catch unreachable,
clap.parseParam("--filter <STR>... Display outdated dependencies for each matching workspace") catch unreachable,
clap.parseParam("-F, --filter <STR>... Display outdated dependencies for each matching workspace") catch unreachable,
clap.parseParam("<POS> ... Package patterns to filter by") catch unreachable,
});

View File

@@ -110,7 +110,7 @@ function runInCwdSuccess({
cmd.push("--filter", p);
}
} else {
cmd.push("--filter", pattern);
cmd.push("-F", pattern);
}
for (const c of command) {