#!/usr/bin/env php . */ define('INSTALLDIR', dirname(__DIR__)); define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $helptext = << Shows the structure of a table END_OF_SHOWTABLE_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; if (count($args) != 1) { show_help(); } $name = $args[0]; $schema = Schema::get(); $td = $schema->getTableDef($name); print_r($td);