Lines Matching refs:options
20 protected $options;
53 $this->options = new Options($this->colors);
57 * Register options and arguments on the given $options object
59 * @param Options $options
64 abstract protected function setup(Options $options);
69 * Arguments and options have been parsed when this is run
71 * @param Options $options
76 abstract protected function main(Options $options);
81 * Executes the setup() routine, adds default options, initiate the options parsing and argument checking
93 $this->setup($this->options);
105 * Add the default help, color and log options
109 $this->options->registerOption(
114 $this->options->registerOption(
118 $this->options->registerOption(
128 * Handle the default options
132 if ($this->options->getOpt('no-colors')) {
135 if ($this->options->getOpt('help')) {
136 echo $this->options->help();
142 * Handle the logging options
146 $level = $this->options->getOpt('loglevel', $this->logdefault);
159 $this->options->parseOptions();
167 $this->options->checkArguments();
175 $this->main($this->options);