You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -168,9 +179,11 @@ public function getOptionParser() {
168
179
return$parser->description(
169
180
'The Migration shell.' .
170
181
'')
182
+
->addOption('name', array(
183
+
'help' => __d('migrations', 'The migration script name.')))
171
184
->addOption('plugin', array(
172
185
'short' => 'p',
173
-
'help' => __d('migrations', 'Plugin name to be used')))
186
+
'help' => __d('migrations', 'Plugin name to be used.')))
174
187
->addOption('precheck', array(
175
188
'short' => 'm',
176
189
'default' => 'Migrations.PrecheckException',
@@ -215,6 +228,12 @@ public function getOptionParser() {
215
228
'boolean' => false,
216
229
'default' => false,
217
230
'help' => __d('migrations', 'CamelCased Classname without the `Schema` suffix to use when reading or generating schema files. See `Console/cake schema generate --help`.')))
231
+
->addOption('preview', array(
232
+
'boolean' => true,
233
+
'help' => __d('migrations', 'Enables the migration file preview.')))
234
+
->addOption('no-preview', array(
235
+
'boolean' => true,
236
+
'help' => __d('migrations', 'Disables the migration file preview.')))
218
237
->addSubcommand('status', array(
219
238
'help' => __d('migrations', 'Displays a status of all plugin and app migrations.')))
0 commit comments