@@ 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 | /* translators: %s is a command like "prompt" */ |
|
38 | WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
|
39 | } |
|
40 | ||
41 | /* |
|
@@ 506-508 (lines=3) @@ | ||
503 | ||
504 | // Bail if the option isn't found |
|
505 | $option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false; |
|
506 | if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) { |
|
507 | WP_CLI::error( __( 'Option not found or is empty. Use "list" to list option names', 'jetpack' ) ); |
|
508 | } |
|
509 | ||
510 | // Let's print_r the option if it's an array |
|
511 | // Used in the 'get' and 'list' actions |