Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 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
		$master_user_email = Jetpack::get_master_user_email();
@@ 552-554 (lines=3) @@
549
550
		// Bail if the option isn't found
551
		$option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false;
552
		if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) {
553
			WP_CLI::error( __( 'Option not found or is empty.  Use "list" to list option names', 'jetpack' ) );
554
		}
555
556
		// Let's print_r the option if it's an array
557
		// Used in the 'get' and 'list' actions