Lines Matching refs:options
30 protected function setup(\splitbrain\phpcli\Options $options) argument
32 $options->setHelp('This tool is used to gather and check data for building a release');
34 $options->registerCommand('new', 'Get environment for creating a new release');
35 …$options->registerOption('type', 'The type of release to build', null, join('|', self::TYPES), 'ne…
36 …$options->registerOption('date', 'The date to use for the version. Defaults to today', null, 'YYYY…
37 …$options->registerOption('name', 'The codename to use for the version. Defaults to the last used o…
39 $options->registerCommand('current', 'Get environment of the current release');
42 protected function main(\splitbrain\phpcli\Options $options) argument
44 switch ($options->getCmd()) {
46 $this->prepareNewEnvironment($options);
49 $this->prepareCurrentEnvironment($options);
52 echo $options->help();
59 protected function prepareCurrentEnvironment(\splitbrain\phpcli\Options $options) argument
74 protected function prepareNewEnvironment(\splitbrain\phpcli\Options $options) argument
80 'type' => $options->getOpt('type'),
81 'date' => $options->getOpt('date'),
82 'codename' => $options->getOpt('name'),