Bake\Shell\Task\TestTask::getOptionParser PHP Метод

getOptionParser() публичный Метод

Gets the option parser instance and configures it.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
Результат Cake\Console\ConsoleOptionParser
    public function getOptionParser()
    {
        $parser = parent::getOptionParser();
        $parser->description('Bake test case skeletons for classes.')->addArgument('type', ['help' => 'Type of class to bake, can be any of the following:' . ' controller, model, helper, component or behavior.', 'choices' => ['Controller', 'controller', 'Table', 'table', 'Entity', 'entity', 'Helper', 'helper', 'Component', 'component', 'Behavior', 'behavior', 'Shell', 'shell', 'shell_helper', 'Cell', 'cell', 'Form', 'form', 'Mailer', 'mailer']])->addArgument('name', ['help' => 'An existing class to bake tests for.'])->addOption('fixtures', ['help' => 'A comma separated list of fixture names you want to include.'])->addOption('no-fixture', ['boolean' => true, 'default' => false, 'help' => 'Select if you want to bake without fixture.'])->addOption('prefix', ['default' => false, 'help' => 'Use when baking tests for prefixed controllers.'])->addOption('all', ['boolean' => true, 'help' => 'Bake all classes of the given type']);
        return $parser;
    }