|
@@ 36-38 (lines=3) @@
|
| 33 |
|
WP_CLI::error( __( 'Jetpack is not currently connected to WordPress.com', 'jetpack' ) ); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
if ( isset( $args[0] ) && 'full' !== $args[0] ) { |
| 37 |
|
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/* |
| 41 |
|
* Are they asking for all data? |
|
@@ 494-496 (lines=3) @@
|
| 491 |
|
|
| 492 |
|
// Bail if the option isn't found |
| 493 |
|
$option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false; |
| 494 |
|
if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) { |
| 495 |
|
WP_CLI::error( __( 'Option not found or is empty. Use "list" to list option names', 'jetpack' ) ); |
| 496 |
|
} |
| 497 |
|
|
| 498 |
|
// Let's print_r the option if it's an array |
| 499 |
|
// Used in the 'get' and 'list' actions |