public function edit( $args, $assoc_args ) {
		$post = $this->fetcher->get_check( $args[0] );

		$result = $this->_edit( $post->post_content, "WP-CLI post {$post->ID}" );

		if ( false === $result ) {
			WP_CLI::warning( 'No change made to post content.', 'Aborted' );
		} else {
			$this->update( $args, [ 'post_content' => $result ] );
		}
	}
public function edit( $args, $assoc_args ) {
		$post = $this->fetcher->get_check( $args[0] );

		$result = $this->_edit( $post->post_content, "WP-CLI post {$post->ID}" );

		if ( false === $result ) {
			WP_CLI::warning( 'No change made to post content.', 'Aborted' );
		} else {
			$this->update( $args, [ 'post_content' => $result ] );
		}
	}
public function edit ( $ args , $ assoc_args ) { $ post = $ this -> fetcher -> get_check ( $ args [ 0 ] ) ; $ result = $ this -> _edit ( $ post -> post_content , "WP-CLI post {$post->ID}" ) ; if ( false === $ result ) { WP_CLI :: warning ( 'No change made to post content.' , 'Aborted' ) ; } else { $ this -> update ( $ args , [ 'post_content' => $ result ] ) ; } }
Launches system editor to edit post content.

## OPTIONS

<id>
: The ID of the post to edit.

## EXAMPLES

# Launch system editor to edit post
$ wp post edit 123
Launches system editor to edit post content .