Permalink
Browse files

Fix options in OptionParser for TestTask

Fix the allowed options for type to allow Camelcase versions as well.
  • Loading branch information...
1 parent 3022552 commit 72006b9369521ce7a0bb02b60bad9e00a8097ba7 @markstory markstory committed Oct 23, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Cake/Console/Command/Task/TestTask.php
@@ -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(

0 comments on commit 72006b9

Please sign in to comment.