Help_Command::__invoke()publicWP-CLI 1.0

Gets help on WP-CLI, or on a specific command.

OPTIONS

[<command>...]
Get help on a specific command.

EXAMPLES

# get help for `core` command
wp help core
# get help for `core download` subcommand
wp help core download

Method of the class: Help_Command{}

No Hooks.

Return

null. Nothing.

Usage

$Help_Command = new Help_Command();
$Help_Command->__invoke( $args, $assoc_args );
$args (required)
-
$assoc_args (required)
-

Help_Command::__invoke() code WP-CLI 2.7.0-alpha

public function __invoke( $args, $assoc_args ) {
	$r = WP_CLI::get_runner()->find_command_to_run( $args );

	if ( is_array( $r ) ) {
		list( $command ) = $r;

		self::show_help( $command );
		exit;
	}
}