示例#1
0
 public function options($opts)
 {
     parent::options($opts);
     $self = $this;
     $opts->add('D|data-source:', 'specify data source id')->validValues(function () use($self) {
         return $self->config->getDataSourceIds();
     });
 }
示例#2
0
 public function options($opts)
 {
     $opts->add('f|force', 'force generate all schema files.');
     parent::options($opts);
 }