WP_CLI\Dispatcher
Subcommand::get_usage()
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() 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() ); }