php/WP_CLI/Dispatcher/CompositeCommand.php
public function find_subcommand( &$args ) {
		$name = array_shift( $args );

		$subcommands = $this->get_subcommands();

		if ( ! isset( $subcommands[ $name ] ) ) {
			$aliases = self::get_aliases( $subcommands );

			if ( isset( $aliases[ $name ] ) ) {
				$name = $aliases[ $name ];
			}
		}

		if ( ! isset( $subcommands[ $name ] ) ) {
			return false;
		}

		return $subcommands[ $name ];
	}
public function find_subcommand( &$args ) {
		$name = array_shift( $args );

		$subcommands = $this->get_subcommands();

		if ( ! isset( $subcommands[ $name ] ) ) {
			$aliases = self::get_aliases( $subcommands );

			if ( isset( $aliases[ $name ] ) ) {
				$name = $aliases[ $name ];
			}
		}

		if ( ! isset( $subcommands[ $name ] ) ) {
			return false;
		}

		return $subcommands[ $name ];
	}
public function find_subcommand ( & $ args ) { $ name = array_shift ( $ args ) ; $ subcommands = $ this -> get_subcommands ( ) ; if ( ! isset ( $ subcommands [ $ name ] ) ) { $ aliases = self :: get_aliases ( $ subcommands ) ; if ( isset ( $ aliases [ $ name ] ) ) { $ name = $ aliases [ $ name ] ; } } if ( ! isset ( $ subcommands [ $ name ] ) ) { return false ; } return $ subcommands [ $ name ] ; }
Given supplied arguments, find a contained
subcommand

@param array $args
@return \WP_CLI\Dispatcher\Subcommand|false
Given supplied arguments find a contained subcommand