예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
 }