Unable to use `wp site list` to filter sites by path
Bug Report
The wp site list command supports filtering to specific fields, such as domain:
wp site list --domain=wordpress.org
and the documentation suggests it can filter to the path, but the parameter conflicts with the global --path parameter.
The code seems to suggest it's possible too: https://github.com/wp-cli/entity-command/blob/master/src/Site_Command.php#L558-L563
It should be possible to list sites by their path component somehow, eg: wp site list --field-path=/support/
Let us know what environment you are running this on
OS: Linux 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64
PHP version: 7.2.28
WP-CLI version: 2.4.0
@dd32 It should work with the WP_CLI_STRICT_ARGS_MODE=1 flag.
Related: https://github.com/wp-cli/entity-command/commit/0ab81152272897737735ebcbce8cfa0655266ff4
Thanks @ocean90! I still feel this is a bug and there should at least be a prefixed variant of the args if strict mode is never going to be enforced.