wp-pot / wp-pot-cli

Run wp-pot script via cli
MIT License
37 stars 5 forks source link

Exclude directory #17

Closed pasqualevitiello closed 6 years ago

pasqualevitiello commented 7 years ago

Let's say I want to exclude a specific directory: I've tried with an array like this --src ['**/*.php', '!dist/**/*.php'] as suggested on wp-pot docs but no success. Any advice?

rasmusbe commented 6 years ago

Hi,

If you add the glob as a string, and escape ! it will work. Example: ./cli.js --src="['**/*.php', '\!dist/**/*.php']"