Gets the option parser instance and configures it.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser | ||
Результат | Cake\Console\ConsoleOptionParser |
/** * Gets the option parser instance and configures it. * * @return \Cake\Console\ConsoleOptionParser */ public function getOptionParser() { $parser = parent::getOptionParser(); $parser->addOption('records', ['boolean' => true, 'help' => 'Include records from the database in the seed file']); return $parser; }