You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds like it might be looking for a status called active,parent and not actually doing any splitting to filter by both.
So this would be more of an enhancement. I'd be open to accept a PR that covers all relevant commands and also clearly documents the behavior. Would also be good to check other commands as well to ensure they all behave similarly.
@swissspidy IMO It's hard to guess whether the user wants to pass comma-separated strings as multiple strings or the string itself contains the comma. In this case, we can explore the strategy to pass a flag multiple times in case multiple values are intended for a flag.
Example:
$ wp --flag=option1 --flag=option2
# It will be parsed by CLI as `$flag = [ 'option1', 'option2' ]`$ wp --flag=option1,option2
# It will be parsed by CLI as `$flag = [ 'option1,option2' ]`
Activity
swissspidy commentedon Nov 10, 2023
Sounds like it might be looking for a status called
active,parentand not actually doing any splitting to filter by both.So this would be more of an enhancement. I'd be open to accept a PR that covers all relevant commands and also clearly documents the behavior. Would also be good to check other commands as well to ensure they all behave similarly.
thelovekesh commentedon Nov 10, 2023
@swissspidy IMO It's hard to guess whether the user wants to pass comma-separated strings as multiple strings or the string itself contains the comma. In this case, we can explore the strategy to pass a flag multiple times in case multiple values are intended for a flag.
Example:
danielbachhuber commentedon Nov 11, 2023
Related #159
test: add comma-separated --status test for wp theme list (closes #224)
Allow multiple values for field filter options in `wp plugin list` an…