Skip to content

Commit

Permalink
--force should be a boolean flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 21, 2014
1 parent 1affe70 commit 22b26d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/Command/Task/ControllerTask.php
Expand Up @@ -317,6 +317,7 @@ public function getOptionParser() {
'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.')
Expand Down
1 change: 1 addition & 0 deletions src/Console/Command/Task/FixtureTask.php
Expand Up @@ -77,6 +77,7 @@ public function getOptionParser() {
'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).'),
Expand Down
1 change: 1 addition & 0 deletions src/Console/Command/Task/ModelTask.php
Expand Up @@ -657,6 +657,7 @@ public function getOptionParser() {
'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.')
Expand Down

0 comments on commit 22b26d3

Please sign in to comment.