#!/usr/bin/env php \n"; exit(1); } try { $library = StageFileReader::read($argv[1]); } catch (Exception $e) { echo 'Error: ' . $e->getMessage() . "\n"; exit(1); } echo 'Stage layouts (' . $library->count() . "):\n"; foreach ($library->getLayouts() as $index => $layout) { echo sprintf(" [%d] %s :: %s\n", $index + 1, $layout->getName() ?: '(unnamed)', $layout->getUuid()); }