WP_CLI\Dispatcher

CommandAddition::abort()publicWP-CLI 1.0

Abort the current command addition.

Method of the class: CommandAddition{}

No Hooks.

Return

null. Nothing (null).

Usage

$CommandAddition = new CommandAddition();
$CommandAddition->abort( $reason );
$reason(string)
Reason as to why the addition was aborted.
Default: ''

CommandAddition::abort() code WP-CLI 2.8.0-alpha

public function abort( $reason = '' ) {
	$this->abort  = true;
	$this->reason = (string) $reason;
}