Skip to content

Commit

Permalink
Allow --glob option to be provided multiple times (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronccasanova authored Jan 10, 2025
1 parent e8f5432 commit fba7e25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-peas-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'glob-workers': minor
---

Allow `--glob` option to be provided multiple times
2 changes: 1 addition & 1 deletion packages/glob-workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface WorkerOptions {
## CLI Options

```
--glob, -g (string): The glob pattern of files to process.
--glob, -g (string): The glob pattern of files to process. This option can be provided multiple times.
--glob-cwd (string): Overrides the default glob `cwd` e.g. process.cwd()
--glob-ignore (string): Ignore pattern for glob matching.
Expand Down
2 changes: 1 addition & 1 deletion packages/glob-workers/bin/glob-workers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const cli = util.parseArgs({
allowPositionals: true,
options: {
/** Glob pattern of files to process */
glob: { type: 'string', short: 'g' },
glob: { type: 'string', short: 'g', multiple: true },
/** Override current working directory when glob matching */
'glob-cwd': { type: 'string' },
/** Ignore pattern for glob matching */
Expand Down

0 comments on commit fba7e25

Please sign in to comment.