WP_CLI\Dispatcher
Subcommand::get_usage
Get the usage of the subcommand as a formatted string.
Метод класса: Subcommand{}
Хуков нет.
Возвращает
string.
Использование
$Subcommand = new Subcommand(); $Subcommand->get_usage( $prefix );
- $prefix(строка) (обязательный)
- .
Код Subcommand::get_usage() Subcommand::get usage WP-CLI 2.13.0-alpha
public function get_usage( $prefix ) {
return sprintf(
'%s%s %s',
$prefix,
implode( ' ', get_path( $this ) ),
$this->get_synopsis()
);
}