OSDN Git Service

Update `wp post list` examples
authorDaniel Bachhuber <d@danielbachhuber.com>
Mon, 20 Jan 2014 17:10:05 +0000 (09:10 -0800)
committerDaniel Bachhuber <d@danielbachhuber.com>
Mon, 20 Jan 2014 17:10:05 +0000 (09:10 -0800)
php/commands/post.php

index 2f99733..754d631 100644 (file)
@@ -210,7 +210,7 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
         * : Limit the output to specific object fields. Defaults to ID,post_title,post_name,post_date,post_status.
         *
         * [--format=<format>]
-        * : Accepted values: table, csv, json, count. Default: table
+        * : Accepted values: table, csv, json, count, ids. Default: table
         *
         * ## EXAMPLES
         *
@@ -219,6 +219,8 @@ class Post_Command extends \WP_CLI\CommandWithDBObject {
         *     wp post list --post_type=post --posts_per_page=5 --format=json
         *
         *     wp post list --post_type=page --fields=post_title,post_status
+        * 
+        *     wp post list --post_type=page,post --format=ids 
         *
         * @subcommand list
         */