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