Inheritance: extends Cake\Console\Shell
Esempio n. 1
0
 /**
  * Get the option parser for this shell.
  *
  * @return \Cake\Console\ConsoleOptionParser
  */
 public function getOptionParser()
 {
     return parent::getOptionParser()->addOptions(['overwrite' => ['short' => 'o', 'boolean' => true, 'help' => 'Overwrite files even if they already exist.']]);
 }
Esempio n. 2
0
 /**
  * Get the option parser for this shell.
  *
  * @return \Cake\Console\ConsoleOptionParser
  */
 public function getOptionParser()
 {
     return parent::getOptionParser()->addOptions(['prefix' => ['help' => 'Routing prefix to migrate.', 'default' => 'admin']]);
 }
Esempio n. 3
0
 /**
  * Get the option parser for this shell.
  *
  * @return \Cake\Console\ConsoleOptionParser
  */
 public function getOptionParser()
 {
     return parent::getOptionParser()->addOptions(['root' => ['default' => '', 'help' => 'Set an application\'s root path. Not defining it makes the current path the root one.']]);
 }