Lines Matching defs:options
20 protected $options;
99 $this->options = new Options($this->colors);
103 * Register options and arguments on the given $options object
105 * @param Options $options
110 abstract protected function setup(Options $options);
115 * Arguments and options have been parsed when this is run
117 * @param Options $options
122 abstract protected function main(Options $options);
127 * Executes the setup() routine, adds default options, initiate the options parsing and argument checking
139 $this->setup($this->options);
151 * Add the default help, color and log options
155 $this->options->registerOption(
160 $this->options->registerOption(
164 $this->options->registerOption(
174 * Handle the default options
178 if ($this->options->getOpt('no-colors')) {
181 if ($this->options->getOpt('help')) {
182 echo $this->options->help();
188 * Handle the logging options
192 $level = $this->options->getOpt('loglevel', $this->logdefault);
201 $this->options->parseOptions();
209 $this->options->checkArguments();
217 $this->main($this->options);