From ac1cb87f662d9b4121eb8742d8454a8c81082e05 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 17 Mar 2014 21:10:48 -0400 Subject: [PATCH] Update help/option parser for FixtureTask. --- src/Console/Command/Task/FixtureTask.php | 30 +++++++----------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/Console/Command/Task/FixtureTask.php b/src/Console/Command/Task/FixtureTask.php index d1b7685cdd5..2b079322fff 100644 --- a/src/Console/Command/Task/FixtureTask.php +++ b/src/Console/Command/Task/FixtureTask.php @@ -1,7 +1,5 @@ addArgument('name', [ 'help' => __d('cake_console', 'Name of the fixture to bake. Can use Plugin.name to bake plugin fixtures.') - ])->addOption('count', [ - 'help' => __d('cake_console', 'When using generated data, the number of records to include in the fixture(s).'), - 'short' => 'n', - 'default' => 10 ])->addOption('connection', [ 'help' => __d('cake_console', 'Which database configuration to use for baking.'), 'short' => 'c', @@ -84,23 +70,25 @@ public function getOptionParser() { ])->addOption('plugin', [ 'help' => __d('cake_console', 'CamelCased name of the plugin to bake fixtures for.'), 'short' => 'p', - ])->addOption('schema', [ - 'help' => __d('cake_console', 'Importing schema for fixtures rather than hardcoding it.'), - 'short' => 's', - 'boolean' => true ])->addOption('theme', [ 'short' => 't', 'help' => __d('cake_console', 'Theme to use when baking code.') ])->addOption('force', [ 'short' => 'f', '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).'), + 'short' => 'n', + 'default' => 10 + ])->addOption('schema', [ + 'help' => __d('cake_console', 'Create a fixture that imports schema, instead of dumping a schema snapshot into the fixture.'), + 'short' => 's', + 'boolean' => true ])->addOption('records', [ 'help' => __d('cake_console', 'Used with --count and /all commands to pull [n] records from the live tables, where [n] is either --count or the default of 10.'), 'short' => 'r', 'boolean' => true - ])->epilog( - __d('cake_console', 'Omitting all arguments and options will enter into an interactive mode.') - ); + ]); return $parser; }