Closed jakejackson1 closed 4 years ago
Great improvement, thanks!
Can you update docs with this info, all I found initially was your description of using a single --src
arg with a string based array of paths. Never got any strings until I separated to use multiple --src
args.
Thanks Daniel, I have updated the readme now.
When meow allows a flag to be set multiple times it automatically converts the input into an array, which means you can now pass multiple globs to WP POT using
wp-pot --src path1 --src path2 --src path3
.The reason this change is needed is that the technique described https://github.com/wp-pot/wp-pot-cli/issues/17#issuecomment-351395090 does not work (at least in the latest version of WP POT / WP POT CLI), and the string containing an array is always a string.
Unit test has been added for this use case, and linting passes 👍