6 require_once $_composer_autoload_path ?? __DIR__
."/../vendor/autoload.php";
9 fprintf(STDERR
, "Usage: %s <ref>[ <ref> ...]\n", $argv[0]);
13 $ref = new Reference(array_slice($argv, 1));
14 /** @var $repo Repo */
15 foreach ($ref as $repo) {
16 $fd = fopen($repo->getName().".stub.php", "w");
17 ob_start(function($s) use($fd) {
23 $root = $repo->getRootEntry();
24 $root->getStructure()->format();