public function filter_arguments( $arg ) {
		$patterns = array(
			'url=', 'path=', 'user=', 'skip-plugins=?', 'skip-themes=?',
			'require=', 'no-color', 'color', 'prompt', 'allow-root',
		);

		foreach ( $patterns as $pattern ) {
			if ( preg_match( "~^--{$pattern}~i", $arg ) ) {
				return false;
			}
		}

		return true;
	}
public function filter_arguments( $arg ) {
		$patterns = array(
			'url=', 'path=', 'user=', 'skip-plugins=?', 'skip-themes=?',
			'require=', 'no-color', 'color', 'prompt', 'allow-root',
		);

		foreach ( $patterns as $pattern ) {
			if ( preg_match( "~^--{$pattern}~i", $arg ) ) {
				return false;
			}
		}

		return true;
	}
public function filter_arguments ( $ arg ) { $ patterns = array ( 'url=' , 'path=' , 'user=' , 'skip-plugins=?' , 'skip-themes=?' , 'require=' , 'no-color' , 'color' , 'prompt' , 'allow-root' , ) ; foreach ( $ patterns as $ pattern ) { if ( preg_match ( "~^--{$pattern}~i" , $ arg ) ) { return false ; } } return true ; }
Removes WP_CLI related arguments from input for Codeception commands to escape conflicts.

@since 1.0.0

@access public
@param string $arg The argument.
@return boolean TRUE if argument has to be left in the input array, otherwise FALSE.
Removes WP_CLI related arguments from input for Codeception commands to escape conflicts .