Skip to content

Commit

Permalink
Fix options in OptionParser for TestTask
Browse files Browse the repository at this point in the history
Fix the allowed options for type to allow Camelcase versions as well.
  • Loading branch information
markstory committed Oct 23, 2011
1 parent 3022552 commit 72006b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Cake/Console/Command/Task/TestTask.php
Expand Up @@ -468,7 +468,13 @@ public function getOptionParser() {
return $parser->description(__d('cake_console', 'Bake test case skeletons for classes.'))
->addArgument('type', array(
'help' => __d('cake_console', 'Type of class to bake, can be any of the following: controller, model, helper, component or behavior.'),
'choices' => array('controller', 'model', 'helper', 'component', 'behavior')
'choices' => array(
'Controller', 'controller',
'Model', 'model',
'Helper', 'helper',
'Component', 'component',
'Behavior', 'behavior'
)
))->addArgument('name', array(
'help' => __d('cake_console', 'An existing class to bake tests for.')
))->addOption('plugin', array(
Expand Down

0 comments on commit 72006b9

Please sign in to comment.