wp-pot / wp-pot-cli

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

Allow multiple src globs to be passed to WP POT #77

Closed jakejackson1 closed 4 years ago

jakejackson1 commented 4 years ago

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 👍

rasmusbe commented 4 years ago

Great improvement, thanks!

danieliser commented 2 years ago

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.

rasmusbe commented 2 years ago

Thanks Daniel, I have updated the readme now.