src/Capabilities_Command.php
private static function get_role( $role ) {
		global $wp_roles;

		$role_obj = $wp_roles->get_role( $role );

		if ( ! $role_obj ) {
			WP_CLI::error( "'{$role}' role not found." );
		}

		return $role_obj;
	}
private static function get_role( $role ) {
		global $wp_roles;

		$role_obj = $wp_roles->get_role( $role );

		if ( ! $role_obj ) {
			WP_CLI::error( "'{$role}' role not found." );
		}

		return $role_obj;
	}
private static function get_role ( $ role ) { global $ wp_roles ; $ role_obj = $ wp_roles -> get_role ( $ role ) ; if ( ! $ role_obj ) { WP_CLI :: error ( "'{$role}' role not found." ) ; } return $ role_obj ; }
Retrieve a specific role from the system.

@param string $role Role to retrieve.
@return WP_Role Requested role.
@throws \WP_CLI\ExitException If the role could not be found.
Retrieve a specific role from the system .