OSDN Git Service

unset 'json' key, not 'ids'
authorscribu <mail@scribu.net>
Sun, 19 May 2013 18:23:25 +0000 (21:23 +0300)
committerscribu <mail@scribu.net>
Sun, 19 May 2013 18:23:25 +0000 (21:23 +0300)
php/WP_CLI/Runner.php

index 4c5cabe..2de3bb6 100644 (file)
@@ -239,7 +239,7 @@ class Runner {
                // --json  ->  --format=json
                if ( isset( $this->assoc_args['json'] ) ) {
                        $this->assoc_args['format'] = 'json';
-                       unset( $this->assoc_args['ids'] );
+                       unset( $this->assoc_args['json'] );
                }
        }