Closed modelm closed 6 years ago
In all fairness, this is not a bug in wp-cli-buddpress per se. I had this problem too in my local development but not on sites/server I installed the package into.
So my guess would be this is an environment bug with wp-cli instead of the package itself. I've found several similar cases with other packages and its commands but so far I don't have a possible explanation for why this is happening.
I'm using:
PHP 7.2.4 WP-CLI 1.5.0 BuddyPress 2.9.3 WordPress 4.9.2
I installed this package like this:
wp package install buddypress/wp-cli-buddypress
When I try to use a command that consists of more than two words e.g.
bp group member
I get an error:Error: 'member' is not a registered subcommand of 'bp group'. See 'wp help bp group' for available subcommands.
I noticed that all three-word commands are affected. Just running
wp bp
only shows me two-word commands:And the three-word commands are apparently not registered as subcommands since they're missing from this list as well:
If I change the second word from
group
to something unique likegroupp
inwp-cli-bp.php
then I can see & run the command as expected:I also tried replacing the installed buddypress/wp-cli-buddypress package with a clone of the latest master branch and had the same problem.