Fix options in OptionParser for TestTask

Fix the allowed options for type to allow Camelcase versions as well.
This commit is contained in:
mark_story 2011-10-23 11:10:52 -04:00
parent 30225520ff
commit 72006b9369

View file

@ -468,7 +468,13 @@ class TestTask extends BakeTask {
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(