@@ 39-41 (lines=3) @@ | ||
36 | WP_CLI::error( __( 'Jetpack is not currently connected to WordPress.com', 'jetpack' ) ); |
|
37 | } |
|
38 | ||
39 | if ( isset( $args[0] ) && 'full' !== $args[0] ) { |
|
40 | /* translators: %s is a command like "prompt" */ |
|
41 | WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
|
42 | } |
|
43 | ||
44 | $master_user_email = Jetpack::get_master_user_email(); |
|
@@ 560-562 (lines=3) @@ | ||
557 | ||
558 | // Bail if the option isn't found |
|
559 | $option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false; |
|
560 | if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) { |
|
561 | WP_CLI::error( __( 'Option not found or is empty. Use "list" to list option names', 'jetpack' ) ); |
|
562 | } |
|
563 | ||
564 | // Let's print_r the option if it's an array |
|
565 | // Used in the 'get' and 'list' actions |