From fbc41b535c72765de92bd744fb06b1a03bc9d262 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 29 Aug 2013 11:41:07 -0700 Subject: [PATCH] Support arbitrary filtering when listing terms --- php/commands/term.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php/commands/term.php b/php/commands/term.php index 43539574..415feb5d 100644 --- a/php/commands/term.php +++ b/php/commands/term.php @@ -23,6 +23,9 @@ class Term_Command extends WP_CLI_Command { * * * : List terms of a given taxonomy. + * + * --= + * : Filter by one or more fields. For accepted fields, see get_terms(). * * --fields= * : Limit the output to specific object fields. Defaults to all of the term object fields. @@ -37,7 +40,7 @@ class Term_Command extends WP_CLI_Command { * wp term list post_tag --fields=name,slug * * @subcommand list - * @synopsis [--fields=] [--format=] + * @synopsis [--=] [--fields=] [--format=] */ public function _list( $args, $assoc_args ) { -- 2.11.0