private static function generate_man($args) { $command = Dispatcher\traverse($args); if (!$command) { WP_CLI::error(sprintf("'%s' command not found.")); } foreach (self::$man_dirs as $dest_dir => $src_dir) { \WP_CLI\Man\generate($src_dir, $dest_dir, $command); } }
private static function generate_man($args) { $command = Dispatcher\traverse($args); if (!$command) { WP_CLI::error(sprintf("'%s' command not found.")); } \WP_CLI\Man\generate($command); }