From e1d0be610cc49cb0ce621b874cdd07948cc951e3 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 4 Oct 2009 10:24:15 -0400 Subject: [PATCH] Splitting help() into more readable format. --- cake/console/libs/schema.php | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index 3b4a3a26266..be2b88801df 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -464,17 +464,36 @@ function help() { $this->out(); $this->out('Commands:'); $this->out(); - $this->out("\tschema help\n\t\tshows this help message."); + $this->out("\tschema help"); + $this->out("\t\tshows this help message."); $this->out(); - $this->out("\tschema view\n\t\tread and output contents of schema file"); + $this->out("\tschema view"); + $this->out("\t\tread and output contents of schema file"); $this->out(); - $this->out("\tschema generate\n\t\treads from 'connection' writes to 'path'\n\t\tTo force generation of all tables into the schema, use the -f param.\n\t\tUse 'schema generate snapshot ' to generate snapshots\n\t\twhich you can use with the -s parameter in the other operations."); + $this->out("\tschema generate"); + $this->out("\t\treads from 'connection' writes to 'path'"); + $this->out("\t\tTo force generation of all tables into the schema, use the -f param."); + $this->out("\t\tUse 'schema generate snapshot ' to generate snapshots"); + $this->out("\t\twhich you can use with the -s parameter in the other operations."); $this->out(); - $this->out("\tschema dump \n\t\tDump database sql based on schema file to . \n\t\tIf is write, schema dump will be written to a file\n\t\tthat has the same name as the app directory."); + $this->out("\tschema dump "); + $this->out("\t\tDump database sql based on schema file to ."); + $this->out("\t\tIf is write, schema dump will be written to a file"); + $this->out("\t\tthat has the same name as the app directory."); $this->out(); - $this->out("\tschema run create \n\t\tDrop and create tables based on schema file\n\t\toptional arg for selecting schema name\n\t\toptional
arg for creating only one table\n\t\tpass the -s param with a number to use a snapshot\n\t\tTo see the changes, perform a dry run with the -dry param"); + $this->out("\tschema run create
"); + $this->out("\t\tDrop and create tables based on schema file"); + $this->out("\t\toptional arg for selecting schema name"); + $this->out("\t\toptional
arg for creating only one table"); + $this->out("\t\tpass the -s param with a number to use a snapshot"); + $this->out("\t\tTo see the changes, perform a dry run with the -dry param"); $this->out(); - $this->out("\tschema run update
\n\t\talter tables based on schema file\n\t\toptional arg for selecting schema name.\n\t\toptional
arg for altering only one table.\n\t\tTo use a snapshot, pass the -s param with the snapshot number\n\t\tTo see the changes, perform a dry run with the -dry param"); + $this->out("\tschema run update
"); + $this->out("\t\talter tables based on schema file"); + $this->out("\t\toptional arg for selecting schema name."); + $this->out("\t\toptional
arg for altering only one table."); + $this->out("\t\tTo use a snapshot, pass the -s param with the snapshot number"); + $this->out("\t\tTo see the changes, perform a dry run with the -dry param"); $this->out(); $this->_stop(); }