WP_CLI

Runner::cmd_starts_with()privateWP-CLI 1.0

Method of the class: Runner{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->cmd_starts_with( $prefix );
$prefix (required)
-

Runner::cmd_starts_with() code WP-CLI 2.8.0-alpha

private function cmd_starts_with( $prefix ) {
	return array_slice( $this->arguments, 0, count( $prefix ) ) === $prefix;
}