Browse Source

--force should be a boolean flag.

mark_story 12 years ago
parent
commit
22b26d390b

+ 1 - 0
src/Console/Command/Task/ControllerTask.php

@@ -317,6 +317,7 @@ class ControllerTask extends BakeTask {
 			'help' => __d('cake_console', 'Do not generate basic CRUD action methods.')
 		])->addOption('force', [
 			'short' => 'f',
+			'boolean' => true,
 			'help' => __d('cake_console', 'Force overwriting existing files without prompting.')
 		])->addSubcommand('all', [
 			'help' => __d('cake_console', 'Bake all controllers with CRUD methods.')

+ 1 - 0
src/Console/Command/Task/FixtureTask.php

@@ -77,6 +77,7 @@ class FixtureTask extends BakeTask {
 			'help' => __d('cake_console', 'Theme to use when baking code.')
 		])->addOption('force', [
 			'short' => 'f',
+			'boolean' => true,
 			'help' => __d('cake_console', 'Force overwriting existing files without prompting.')
 		])->addOption('count', [
 			'help' => __d('cake_console', 'When using generated data, the number of records to include in the fixture(s).'),

+ 1 - 0
src/Console/Command/Task/ModelTask.php

@@ -657,6 +657,7 @@ class ModelTask extends BakeTask {
 			'help' => __d('cake_console', 'The connection the model table is on.')
 		])->addOption('force', [
 			'short' => 'f',
+			'boolean' => true,
 			'help' => __d('cake_console', 'Force overwriting existing files without prompting.')
 		])->addOption('table', [
 			'help' => __d('cake_console', 'The table name to use if you have non-conventional table names.')