WP_CLI\Dispatcher
CompositeCommand::get_usage
Get the usage for this composite command.
Method of the class: CompositeCommand{}
No Hooks.
Returns
String.
Usage
$CompositeCommand = new CompositeCommand(); $CompositeCommand->get_usage( $prefix );
- $prefix(required)
- .
CompositeCommand::get_usage() CompositeCommand::get usage code WP-CLI 2.13.0-alpha
public function get_usage( $prefix ) {
return sprintf(
'%s%s %s',
$prefix,
implode( ' ', get_path( $this ) ),
$this->get_synopsis()
);
}