Specifying multiple --include or --exclude paths
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
When creating a patch, a regex is expected for the --include and --exclude arguments. So the natural way to specify multiple paths would be a regex with a pipe ( | ) in it. For example:
`npx patch-package my-module --include file1.java|file2.java`
Output:
```
file2.java: The term 'file2.java' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```
It doesn't work with quotes either:
`npx patch-package my-module --include 'file1.java|file2.java'`
Output:
```
'file2.java' is not recognized as an internal or external command,
operable program or batch file.
```
The error occurs with PowerShell 7.0.2 under Windows 10. Under macOS everything works fine. Linux wasn't tested.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.