From 670d641fd0cbdf92f97b13d7ac62abafb377912b Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 18 May 2013 18:28:56 +0300 Subject: [PATCH] post get: default to table format. see #399 --- features/post.feature | 6 ------ php/commands/post.php | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/features/post.feature b/features/post.feature index c9e93d63..49922475 100644 --- a/features/post.feature +++ b/features/post.feature @@ -32,12 +32,6 @@ Feature: Manage WordPress posts Then STDOUT should match '%d' And save STDOUT as {POST_ID} - When I run `wp post get {POST_ID}` - Then STDOUT should be: - """ - Test content. - """ - When I run `wp post get --format=content {POST_ID}` Then STDOUT should be: """ diff --git a/php/commands/post.php b/php/commands/post.php index 7952a8b7..b2b5199a 100644 --- a/php/commands/post.php +++ b/php/commands/post.php @@ -93,7 +93,7 @@ class Post_Command extends \WP_CLI\CommandWithDBObject { */ public function get( $args, $assoc_args ) { $assoc_args = wp_parse_args( $assoc_args, array( - 'format' => 'content' + 'format' => 'table' ) ); $format = $assoc_args['format']; -- 2.11.0