WP_CLI\Dispatcher

Subcommand::get_usage()publicWP-CLI 1.0

Get the usage of the subcommand as a formatted string.

Method of the class: Subcommand{}

No Hooks.

Return

String.

Usage

$Subcommand = new Subcommand();
$Subcommand->get_usage( $prefix );
$prefix(string) (required)
-

Subcommand::get_usage() code WP-CLI 2.8.0-alpha

public function get_usage( $prefix ) {
	return sprintf(
		'%s%s %s',
		$prefix,
		implode( ' ', get_path( $this ) ),
		$this->get_synopsis()
	);
}