Inheritance: extends Cake\Console\Shell
Ejemplo 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.']]);
 }
Ejemplo 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']]);
 }
Ejemplo 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.']]);
 }