Correct completion case when ends in = by Roy-Orbison · Pull Request #5913 · wp-cli/wp-cli
Further to #5873, I incorrectly handled options that end in = and have already been completed. Any candidates offered immediately after such an option are treated by shells as possible values to concatenate, not possible names of the current option. Consequently, this
wp config create --dbname=
will tab-complete to
wp config create --dbname=--dbname=
I have added an extra condition to prevent that case.