buddypress / wp-cli-buddypress

WP-CLI Community Package of BuddyPress commands
GNU General Public License v3.0
47 stars 19 forks source link

Activity: Correct capitalization of `id` field in `list` command #99

Closed iandunn closed 11 months ago

iandunn commented 11 months ago

wp help bp activity list shows the available fields with ID (capitalized), but using that results in an error:

> wp bp activity list --count=6 --type=wordcamp_organizer_add --fields=ID,user_id,component,type,action,date_recorded
Error: Invalid field: ID.

The field is actually named id (lowercase):

> wp bp activity list --count=6 --type=wordcamp_organizer_add --fields=id,user_id,component,type,action,date_recorded
+---------+----------+-----------+------------------------------+------------------------------+-----------------------------------+
| id      | user_id  | component | type                         | action                       | date_recorded                     |
+---------+----------+-----------+------------------------------+------------------------------+-----------------------------------+
...