Skip to content

Commit

Permalink
Adding option parser to the project task.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 14, 2010
1 parent 50139b1 commit 4985572
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions cake/console/libs/tasks/project.php
Expand Up @@ -343,21 +343,17 @@ public function getPrefix() {
}

/**
* Help
* get the option parser.
*
* @return void
* @return ConsoleOptionParser
*/
public function help() {
$this->hr();
$this->out("Usage: cake bake project <arg1>");
$this->hr();
$this->out('Commands:');
$this->out();
$this->out("project <name>");
$this->out("\tbakes app directory structure.");
$this->out("\tif <name> begins with '/' path is absolute.");
$this->out();
$this->_stop();
public function getOptionParser() {
$parser = parent::getOptionParser();
return $parser->description(
__('Generate a new CakePHP project skeleton.')
)->addArgument('name', array(
'help' => __('Application directory to make, if it starts with "/" the path is absolute.')
));
}

}

0 comments on commit 4985572

Please sign in to comment.